Class CF1Convention

  • All Implemented Interfaces:
    CoordSysBuilderIF
    Direct Known Subclasses:
    CEDRICRadarConvention

    public class CF1Convention
    extends CSMConvention
    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."

    • Constructor Detail

      • CF1Convention

        public CF1Convention()
    • 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

        protected AxisType getAxisType​(NetcdfDataset ncDataset,
                                       VariableEnhanced v)
        Augment COARDS axis type identification with Standard names (including dimensionless vertical coordinates) and CF.AXIS attributes
        Overrides:
        getAxisType in class COARDSConvention
        Parameters:
        ncDataset - for this dataset
        v - a variable alreaddy identified as a Coodinate Axis
        Returns:
        AxisType or null if unknown.