cdm/src/main/java/ucar/nc2/dataset/conv/WRFConvention.java
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());
        }
      }
    }
  }
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());
        }
      }
    }
  }
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.
Assign CoordinateTransform objects to Coordinate Systems .