Package ucar.nc2.grid

Enum GridAxisSpacing

    • Enum Constant Detail

      • regularPoint

        public static final GridAxisSpacing regularPoint
        Regularly spaced points (start, end, npts); start and end are midpoints, edges halfway between midpoints, resol = (start - end) / (npts-1)
      • irregularPoint

        public static final GridAxisSpacing irregularPoint
        Irregular spaced points values[npts]; edges halfway between coords.
      • nominalPoint

        public static final GridAxisSpacing nominalPoint
        Edges are not halfway between coords, but are specified in edges[npts+1].
      • regularInterval

        public static final GridAxisSpacing regularInterval
        Regular contiguous intervals (start, end, npts); start and end are edges, midpoints halfway between edges, resol = (start - end) / npts.
      • contiguousInterval

        public static final GridAxisSpacing contiguousInterval
        Irregular contiguous intervals values[npts+1]; values are the edges, midpoints halfway between edges.
      • discontiguousInterval

        public static final GridAxisSpacing discontiguousInterval
        Irregular discontiguous intervals values[2*npts]; values are the edges: low0, high0, low1, high1, ... Note that monotonicity is not guaranteed, and is ambiguous.
    • Method Detail

      • values

        public static GridAxisSpacing[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GridAxisSpacing c : GridAxisSpacing.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GridAxisSpacing valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isRegular

        public boolean isRegular()
        If the spacing is regular.
      • isInterval

        public boolean isInterval()
        If the coordinate values are intervals.