Class CF1Convention

  • Direct Known Subclasses:
    CEDRICRadarConvention

    public class CF1Convention
    extends CoordSystemBuilder
    CF-1 Convention. see http://www.cgd.ucar.edu/cms/eaton/cf-metadata/index.html

    "The CF conventions for climate and forecast metadata are designed to promote the processing and sharing of files created with the netCDF API. The conventions define metadata that provide a definitive description of what the data in each variable represents, and of the spatial and temporal properties of the data. This enables users of data from different sources to decide which quantities are comparable, and facilitates building applications with powerful extraction, regridding, and display capabilities."

    • Field Detail

      • checkForMeter

        protected boolean checkForMeter
    • Method Detail

      • getVersion

        public static int getVersion​(String hasConvName)
        Get which CF version this is, ie CF-1.x
        Parameters:
        hasConvName - extract from convention name or list of names
        Returns:
        version, or -1 if not CF
      • getZisPositive

        public static String getZisPositive​(String zaxisName,
                                            String vertCoordUnits)
        Guess the value of ZisPositive based on z axis name and units
        Parameters:
        zaxisName - z coordinate axis name
        vertCoordUnits - z coordinate axis name
        Returns:
        CF.POSITIVE_UP or CF.POSITIVE_DOWN
      • getAxisType

        public AxisType getAxisType​(VariableDS.Builder vb)
        Augment COARDS axis type identification with Standard names (including dimensionless vertical coordinates) and CF.AXIS attributes
        Parameters:
        vb - a variable already identified as a Coordinate Axis
        Returns:
        AxisType or null if unknown.