Class VerticalCrsImpl

    • Constructor Detail

      • VerticalCrsImpl

        public VerticalCrsImpl​(String units,
                               boolean pressure,
                               boolean dimensionless,
                               boolean positiveUpwards)
    • Method Detail

      • getUnits

        public String getUnits()
        Description copied from interface: VerticalCrs
        Returns the units for the values in this VerticalCrs

        TODO This may need replacing with a stronger type

        Specified by:
        getUnits in interface VerticalCrs
      • isPressure

        public boolean isPressure()
        Description copied from interface: VerticalCrs
        Return true if this axis has units of pressure. If this is true then the positive direction must be DOWN.
        Specified by:
        isPressure in interface VerticalCrs
      • isDimensionless

        public boolean isDimensionless()
        Description copied from interface: VerticalCrs

        Return true if this is a dimensionless (e.g. sigma or terrain-following) coordinate system. If this is true then the units are irrelevant, and isPressure() will return false.

        Future APIs will need to allow conversions between dimensionless and dimensional coordinates, which will require more information. (The conversion can be performed using existing routines, e.g. in Java-NetCDF.) However, the current purpose of EDAL is not to perform the conversion but to provide client code with enough information to decide what to do.

        Specified by:
        isDimensionless in interface VerticalCrs
        See Also:
        CF conventions
      • isPositiveUpwards

        public boolean isPositiveUpwards()
        Description copied from interface: VerticalCrs
        Indicates whether coordinate values increase upward or downward.
        Specified by:
        isPositiveUpwards in interface VerticalCrs