EnsCoord(CoordinateAxis1D axis, int[] einfo) { this.axis = axis; this.name = axis.getFullName(); this.ensembles = einfo[ 0 ]; this.pdn = einfo[ 1 ]; this.ensTypes = new int[ this.ensembles ]; System.arraycopy( einfo, 2, ensTypes, 0, ensembles); }
EnsCoord(CoordinateAxis1D axis, int[] einfo) { this.name = axis.getFullName(); this.ensembles = einfo[0]; this.pdn = einfo[1]; this.ensTypes = new int[this.ensembles]; System.arraycopy(einfo, 2, ensTypes, 0, ensembles); }
EnsCoord(CoordinateAxis1D axis, int[] einfo) { this.name = axis.getFullName(); this.ensembles = einfo[0]; this.pdn = einfo[1]; this.ensTypes = new int[this.ensembles]; System.arraycopy(einfo, 2, ensTypes, 0, ensembles); }
EnsCoord(CoordinateAxis1D axis, int[] einfo) { this.name = axis.getFullName(); this.ensembles = einfo[0]; this.pdn = einfo[1]; this.ensTypes = new int[this.ensembles]; System.arraycopy(einfo, 2, ensTypes, 0, ensembles); }
public Axis( CoordinateAxis1D coordAxis) { this.coordAxis = coordAxis; this.name = this.coordAxis.getFullName(); this.label = this.coordAxis.getFullName(); this.description = this.coordAxis.getDescription(); this.isNumeric = this.coordAxis.isNumeric(); this.values = new ArrayList<String>(); for ( int i = 0; i < this.coordAxis.getSize(); i++ ) this.values.add( this.coordAxis.getCoordName( i ).trim() ); }
private VertCoord getVertCoordinate(CoordinateAxis1D axis) { for (VertCoord vc : vaxes) { if (vc.getName().equals(axis.getFullName())) return vc; } VertCoord want = new VertCoord(axis); for (VertCoord vc : vaxes) { if ((vc.equalsData(want))) return vc; } // its a new one vaxes.add(want); return want; }
private EnsCoord getEnsCoordinate(CoordinateAxis1D axis) { for (EnsCoord ec : eaxes) { if (ec.getName().equals(axis.getFullName())) return ec; } EnsCoord want = new EnsCoord(axis, null); // NOT YET for (EnsCoord ec : eaxes) { if ((ec.equalsData(want))) return ec; } // its a new one eaxes.add(want); return want; }
private VertCoord getVertCoordinate(CoordinateAxis1D axis) { for (VertCoord vc : vaxes) { if (vc.getName().equals(axis.getFullName())) return vc; } VertCoord want = new VertCoord(axis); for (VertCoord vc : vaxes) { if ((vc.equalsData(want))) return vc; } // its a new one vaxes.add(want); return want; }
private VertCoord getVertCoordinate(CoordinateAxis1D axis) { for (VertCoord vc : vaxes) { if (vc.getName().equals(axis.getFullName())) return vc; } VertCoord want = new VertCoord(axis); for (VertCoord vc : vaxes) { if ((vc.equalsData(want))) return vc; } // its a new one vaxes.add(want); return want; }
private String makeCoordinatesAttribute(GridCoordSystem gcs, String timeDimName) { Formatter sb = new Formatter(); if (gcs.getXHorizAxis() != null) sb.format("%s ", gcs.getXHorizAxis().getFullName()); if (gcs.getYHorizAxis() != null) sb.format("%s ", gcs.getYHorizAxis().getFullName()); if (gcs.getVerticalAxis() != null) sb.format("%s ", gcs.getVerticalAxis().getFullName()); sb.format("%s ", timeDimName); return sb.toString(); }
f.format("ens=%s (%s)", ensembleAxis.getFullName(), ensembleAxis.getClass().getName()); if (showCoords) showCoords(ensembleAxis, f); f.format("%n"); f.format("z=%s (%s)", vertZaxis.getFullName(), vertZaxis.getClass().getName()); if (showCoords) showCoords(vertZaxis, f); f.format("%n");
f.format("ens=%s (%s)", ensembleAxis.getFullName(), ensembleAxis.getClass().getName()); if (showCoords) showCoords(ensembleAxis, f); f.format("%n"); f.format("z=%s (%s)", vertZaxis.getFullName(), vertZaxis.getClass().getName()); if (showCoords) showCoords(vertZaxis, f); f.format("%n");
for ( int z = 0; z < zaxis.getSize(); z++ ) vals.add( zaxis.getCoordName( z ).trim() ); vertAxis = new WcsRangeField.Axis( "Vertical", zaxis.getFullName(), zaxis.getDescription(), zaxis.isNumeric(), vals );
parseInfo.format(" added Vertical Pressure coordinate %s%n", p.getFullName());
VertCoord(CoordinateAxis1D axis) { this.axis = axis; this.name = axis.getFullName(); this.units = axis.getUnitsString(); int n = (int) axis.getSize(); if (axis.isInterval()) { values1 = axis.getBound1(); values2 = axis.getBound2(); } else { values1 = new double[n]; for (int i = 0; i < axis.getSize(); i++) values1[i] = axis.getCoordValue(i); } }
VertCoord(CoordinateAxis1D axis) { // this.axis = axis; this.name = axis.getFullName(); this.units = axis.getUnitsString(); int n = (int) axis.getSize(); if (axis.isInterval()) { values1 = axis.getBound1(); values2 = axis.getBound2(); } else { values1 = new double[n]; for (int i = 0; i < axis.getSize(); i++) values1[i] = axis.getCoordValue(i); } }
p.addAttribute(new Attribute(_Coordinate.AliasForDimension, p.getDimensionsString())); ds.addVariable(null, p); parseInfo.format(" added Vertical Pressure coordinate %s from CF-1 %s%n", p.getFullName(), CF.atmosphere_ln_pressure_coordinate);
VertCoord(CoordinateAxis1D axis) { // this.axis = axis; this.name = axis.getFullName(); this.units = axis.getUnitsString(); int n = (int) axis.getSize(); if (axis.isInterval()) { values1 = axis.getBound1(); values2 = axis.getBound2(); } else { values1 = new double[n]; for (int i = 0; i < axis.getSize(); i++) values1[i] = axis.getCoordValue(i); } }
VertCoord(CoordinateAxis1D axis) { // this.axis = axis; this.name = axis.getFullName(); this.units = axis.getUnitsString(); int n = (int) axis.getSize(); if (axis.isInterval()) { values1 = axis.getBound1(); values2 = axis.getBound2(); } else { values1 = new double[n]; for (int i = 0; i < axis.getSize(); i++) values1[i] = axis.getCoordValue(i); } }
parseInfo.format(" added Vertical Pressure coordinate %s\n", p.getFullName());