public double readGeoZCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException { CoordinateAxis axis = cs.getZaxis(); if (null == axis) throw new IllegalArgumentException("There is no GeoZ coordinate"); return readValue( axis, fromVar, index); }
public double readGeoZCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException { CoordinateAxis axis = cs.getZaxis(); if (null == axis) throw new IllegalArgumentException("There is no GeoZ coordinate"); return readValue( axis, fromVar, index); }
/** * Assign CoordinateTransform objects to Coordinate Systems. */ protected void assignCoordinateTransforms(NetcdfDataset ncDataset) { super.assignCoordinateTransforms(ncDataset); // any cs whose got a vertical coordinate with no units List<CoordinateSystem> csys = ncDataset.getCoordinateSystems(); for (CoordinateSystem cs : csys) { if (cs.getZaxis() != null) { String units = cs.getZaxis().getUnitsString(); if ((units == null) || (units.trim().length() == 0)) { VerticalCT vct = makeWRFEtaVerticalCoordinateTransform(ncDataset, cs); if (vct != null) cs.addCoordinateTransform(vct); parseInfo.format("***Added WRFEta verticalCoordinateTransform to %s%n", cs.getName()); } } } }
/** * Assign CoordinateTransform objects to Coordinate Systems. */ protected void assignCoordinateTransforms(NetcdfDataset ncDataset) { super.assignCoordinateTransforms(ncDataset); // any cs whose got a vertical coordinate with no units List<CoordinateSystem> csys = ncDataset.getCoordinateSystems(); for (CoordinateSystem cs : csys) { if (cs.getZaxis() != null) { String units = cs.getZaxis().getUnitsString(); if ((units == null) || (units.trim().length() == 0)) { VerticalCT vct = makeWRFEtaVerticalCoordinateTransform(ncDataset, cs); if (vct != null) cs.addCoordinateTransform(vct); parseInfo.format("***Added WRFEta verticalCoordinateTransform to %s\n", cs.getName()); } } } }
/** * Assign CoordinateTransform objects to Coordinate Systems. */ protected void assignCoordinateTransforms(NetcdfDataset ncDataset) { super.assignCoordinateTransforms(ncDataset); // any cs whose got a vertical coordinate with no units List<CoordinateSystem> csys = ncDataset.getCoordinateSystems(); for (CoordinateSystem cs : csys) { if (cs.getZaxis() != null) { String units = cs.getZaxis().getUnitsString(); if ((units == null) || (units.trim().length() == 0)) { VerticalCT vct = makeWRFEtaVerticalCoordinateTransform(ncDataset, cs); if (vct != null) { cs.addCoordinateTransform(vct); parseInfo.format("***Added WRFEta verticalCoordinateTransform to %s%n", cs.getName()); } } } } }
/** * Assign CoordinateTransform objects to Coordinate Systems. */ protected void assignCoordinateTransforms(NetcdfDataset ncDataset) { super.assignCoordinateTransforms(ncDataset); // any cs whose got a vertical coordinate with no units List<CoordinateSystem> csys = ncDataset.getCoordinateSystems(); for (CoordinateSystem cs : csys) { if (cs.getZaxis() != null) { String units = cs.getZaxis().getUnitsString(); if ((units == null) || (units.trim().length() == 0)) { VerticalCT vct = makeWRFEtaVerticalCoordinateTransform(ncDataset, cs); if (vct != null) { cs.addCoordinateTransform(vct); parseInfo.format("***Added WRFEta verticalCoordinateTransform to %s%n", cs.getName()); } } } } }
/** * Assign CoordinateTransform objects to Coordinate Systems. */ protected void assignCoordinateTransforms(NetcdfDataset ncDataset) { super.assignCoordinateTransforms(ncDataset); // any cs whose got a vertical coordinate with no units List<CoordinateSystem> csys = ncDataset.getCoordinateSystems(); for (CoordinateSystem cs : csys) { if (cs.getZaxis() != null) { String units = cs.getZaxis().getUnitsString(); if ((units == null) || (units.trim().length() == 0)) { VerticalCT vct = makeWRFEtaVerticalCoordinateTransform(ncDataset, cs); if (vct != null) { cs.addCoordinateTransform(vct); parseInfo.format("***Added WRFEta verticalCoordinateTransform to %s\n", cs.getName()); } } } } }
/** * Assign CoordinateTransform objects to Coordinate Systems. */ protected void assignCoordinateTransforms(NetcdfDataset ncDataset) { super.assignCoordinateTransforms(ncDataset); // any cs whose got a vertical coordinate with no units List<CoordinateSystem> csys = ncDataset.getCoordinateSystems(); for (CoordinateSystem cs : csys) { if (cs.getZaxis() != null) { String units = cs.getZaxis().getUnitsString(); if ((units == null) || (units.trim().length() == 0)) { VerticalCT vct = makeWRFEtaVerticalCoordinateTransform(ncDataset, cs); if (vct != null) cs.addCoordinateTransform(vct); parseInfo.format("***Added WRFEta verticalCoordinateTransform to %s%n", cs.getName()); } } } }
if ((z == null) || !(z instanceof CoordinateAxis1D)) z = cs.getZaxis(); if ((z != null) && !(z instanceof CoordinateAxis1D)) { if (sbuff != null) {
if ((z_oneD == null) || !(z_oneD instanceof CoordinateAxis1D)) z_oneD = zAxis = cs.getZaxis(); if ((z_oneD != null) && !(z_oneD instanceof CoordinateAxis1D)) z_oneD = null;
if ((z == null) || !(z instanceof CoordinateAxis1D)) z = cs.getZaxis(); if ((z != null) && !(z instanceof CoordinateAxis1D)) { if (sbuff != null) {
if ((z == null) || !(z instanceof CoordinateAxis1D)) z = cs.getZaxis(); if ((z != null) && !(z instanceof CoordinateAxis1D)) { if (sbuff != null) {
if ((z_oneD == null) || !(z_oneD instanceof CoordinateAxis1D)) z_oneD = zAxis = cs.getZaxis(); if ((z_oneD != null) && !(z_oneD instanceof CoordinateAxis1D)) z_oneD = null;
if ((z_oneD == null) || !(z_oneD instanceof CoordinateAxis1D)) z_oneD = zAxis = cs.getZaxis(); if ((z_oneD != null) && !(z_oneD instanceof CoordinateAxis1D)) z_oneD = null;
public CoordinateTransform makeCoordinateTransform (NetcdfDataset ds, Variable v) { VerticalCT.Type type = VerticalCT.Type.WRFEta; VerticalCT ct = new VerticalCT(type.toString(), getTransformName(), type, this); ct.addParameter(new Parameter("height formula", "height(x,y,z) = (PH(x,y,z) + PHB(x,y,z)) / 9.81")); ct.addParameter(new Parameter(WRFEta.PerturbationGeopotentialVariable, "PH")); ct.addParameter(new Parameter(WRFEta.BaseGeopotentialVariable, "PHB")); ct.addParameter(new Parameter("pressure formula", "pressure(x,y,z) = P(x,y,z) + PB(x,y,z)")); ct.addParameter(new Parameter(WRFEta.PerturbationPressureVariable, "P")); ct.addParameter(new Parameter(WRFEta.BasePressureVariable, "PB")); if (cs.getXaxis() != null) ct.addParameter(new Parameter(WRFEta.IsStaggeredX, ""+isStaggered(cs.getXaxis()))); else ct.addParameter(new Parameter(WRFEta.IsStaggeredX, ""+isStaggered2(cs.getLonAxis(), 1))); if (cs.getYaxis() != null) ct.addParameter(new Parameter(WRFEta.IsStaggeredY, ""+isStaggered(cs.getYaxis()))); else ct.addParameter(new Parameter(WRFEta.IsStaggeredY, ""+isStaggered2(cs.getLonAxis(), 0))); ct.addParameter(new Parameter(WRFEta.IsStaggeredZ, ""+isStaggered(cs.getZaxis()))); ct.addParameter(new Parameter("eta", ""+cs.getZaxis().getFullName())); return ct; }
public CoordinateTransform makeCoordinateTransform (NetcdfDataset ds, Variable v) { VerticalCT.Type type = VerticalCT.Type.WRFEta; VerticalCT ct = new VerticalCT(type.toString(), getTransformName(), type, this); ct.addParameter(new Parameter("height formula", "height(x,y,z) = (PH(x,y,z) + PHB(x,y,z)) / 9.81")); ct.addParameter(new Parameter(WRFEta.PerturbationGeopotentialVariable, "PH")); ct.addParameter(new Parameter(WRFEta.BaseGeopotentialVariable, "PHB")); ct.addParameter(new Parameter("pressure formula", "pressure(x,y,z) = P(x,y,z) + PB(x,y,z)")); ct.addParameter(new Parameter(WRFEta.PerturbationPressureVariable, "P")); ct.addParameter(new Parameter(WRFEta.BasePressureVariable, "PB")); if (cs.getXaxis() != null) ct.addParameter(new Parameter(WRFEta.IsStaggeredX, ""+isStaggered(cs.getXaxis()))); else ct.addParameter(new Parameter(WRFEta.IsStaggeredX, ""+isStaggered2(cs.getLonAxis(), 1))); if (cs.getYaxis() != null) ct.addParameter(new Parameter(WRFEta.IsStaggeredY, ""+isStaggered(cs.getYaxis()))); else ct.addParameter(new Parameter(WRFEta.IsStaggeredY, ""+isStaggered2(cs.getLonAxis(), 0))); ct.addParameter(new Parameter(WRFEta.IsStaggeredZ, ""+isStaggered(cs.getZaxis()))); ct.addParameter(new Parameter("eta", ""+cs.getZaxis().getFullName())); return ct; }
public VerticalCT makeCoordinateTransform(NetcdfDataset ds, AttributeContainer v) { VerticalCT.Type type = VerticalCT.Type.WRFEta; VerticalCT ct = new VerticalCT(type.toString(), getTransformName(), type, this); ct.addParameter(new Parameter("height formula", "height(x,y,z) = (PH(x,y,z) + PHB(x,y,z)) / 9.81")); ct.addParameter(new Parameter(WRFEta.PerturbationGeopotentialVariable, "PH")); ct.addParameter(new Parameter(WRFEta.BaseGeopotentialVariable, "PHB")); ct.addParameter(new Parameter("pressure formula", "pressure(x,y,z) = P(x,y,z) + PB(x,y,z)")); ct.addParameter(new Parameter(WRFEta.PerturbationPressureVariable, "P")); ct.addParameter(new Parameter(WRFEta.BasePressureVariable, "PB")); if (cs.getXaxis() != null) ct.addParameter(new Parameter(WRFEta.IsStaggeredX, "" + isStaggered(cs.getXaxis()))); else ct.addParameter(new Parameter(WRFEta.IsStaggeredX, "" + isStaggered2(cs.getLonAxis(), 1))); if (cs.getYaxis() != null) ct.addParameter(new Parameter(WRFEta.IsStaggeredY, "" + isStaggered(cs.getYaxis()))); else ct.addParameter(new Parameter(WRFEta.IsStaggeredY, "" + isStaggered2(cs.getLonAxis(), 0))); ct.addParameter(new Parameter(WRFEta.IsStaggeredZ, "" + isStaggered(cs.getZaxis()))); ct.addParameter(new Parameter("eta", "" + cs.getZaxis().getFullName())); return ct; }