cdm/src/main/java/ucar/nc2/dataset/conv/AWIPSsatConvention.java
protected AxisType getAxisType( NetcdfDataset ds, VariableEnhanced ve) {
    Variable v = (Variable) ve;
    String vname = v.getShortName();
    String units = v.getUnitsString();

    if (units.equalsIgnoreCase(CDM.LON_UNITS))
       return AxisType.Lon;

    if (units.equalsIgnoreCase(CDM.LAT_UNITS))
       return AxisType.Lat;


   if (vname.equalsIgnoreCase("x"))
      return AxisType.GeoX;

    if (vname.equalsIgnoreCase("lon"))
      return AxisType.Lon;

    if (vname.equalsIgnoreCase("y"))
      return AxisType.GeoY;

    if (vname.equalsIgnoreCase("lat"))
      return AxisType.Lat;

    if (vname.equalsIgnoreCase("record"))
      return AxisType.Time;
    Dimension dim = v.getDimension(0);
    if ((dim != null) && dim.getShortName().equalsIgnoreCase("record"))
      return AxisType.Time;

    String unit = ve.getUnitsString();
    if (unit != null) {
      if ( SimpleUnit.isCompatible("millibar", unit))
        return AxisType.Pressure;

      if ( SimpleUnit.isCompatible("m", unit))
        return AxisType.Height;
    }

    return AxisType.GeoZ;
  }
protected AxisType getAxisType( NetcdfDataset ds, VariableEnhanced ve) {
    Variable v = (Variable) ve;
    String vname = v.getShortName();
    String units = v.getUnitsString();

    if (units.equalsIgnoreCase(CDM.LON_UNITS))
       return AxisType.Lon;

    if (units.equalsIgnoreCase(CDM.LAT_UNITS))
       return AxisType.Lat;


   if (vname.equalsIgnoreCase("x"))
      return AxisType.GeoX;

    if (vname.equalsIgnoreCase("lon"))
      return AxisType.Lon;

    if (vname.equalsIgnoreCase("y"))
      return AxisType.GeoY;

    if (vname.equalsIgnoreCase("lat"))
      return AxisType.Lat;

    if (vname.equalsIgnoreCase("record"))
      return AxisType.Time;
    Dimension dim = v.getDimension(0);
    if ((dim != null) && dim.getShortName().equalsIgnoreCase("record"))
      return AxisType.Time;

    String unit = ve.getUnitsString();
    if (unit != null) {
      if ( SimpleUnit.isCompatible("millibar", unit))
        return AxisType.Pressure;

      if ( SimpleUnit.isCompatible("m", unit))
        return AxisType.Height;
    }

    return AxisType.GeoZ;
  }
protected AxisType getAxisType ( NetcdfDataset ds , VariableEnhanced ve ) { Variable v = ( Variable ) ve ; String vname = v . getShortName ( ) ; String units = v . getUnitsString ( ) ; if ( units . equalsIgnoreCase ( CDM . LON_UNITS ) ) return AxisType . Lon ; if ( units . equalsIgnoreCase ( CDM . LAT_UNITS ) ) return AxisType . Lat ; if ( vname . equalsIgnoreCase ( "x" ) ) return AxisType . GeoX ; if ( vname . equalsIgnoreCase ( "lon" ) ) return AxisType . Lon ; if ( vname . equalsIgnoreCase ( "y" ) ) return AxisType . GeoY ; if ( vname . equalsIgnoreCase ( "lat" ) ) return AxisType . Lat ; if ( vname . equalsIgnoreCase ( "record" ) ) return AxisType . Time ; Dimension dim = v . getDimension ( 0 ) ; if ( ( dim != null ) && dim . getShortName ( ) . equalsIgnoreCase ( "record" ) ) return AxisType . Time ; String unit = ve . getUnitsString ( ) ; if ( unit != null ) { if ( SimpleUnit . isCompatible ( "millibar" , unit ) ) return AxisType . Pressure ; if ( SimpleUnit . isCompatible ( "m" , unit ) ) return AxisType . Height ; } return AxisType . GeoZ ; }
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////