Package ucar.nc2.grib

Enum GribStatType

  • All Implemented Interfaces:
    Serializable, Comparable<GribStatType>

    public enum GribStatType
    extends Enum<GribStatType>
    Grib1 derived from Code table 5 : Time range indicator Grib2 code table 4.10: Statistical process used to calculate the processed field from the field at each time increment during the time range These are the standard WMO tables only.
    Since:
    1/17/12
    • Method Detail

      • values

        public static GribStatType[] 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 (GribStatType c : GribStatType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GribStatType 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
      • getStatTypeFromGrib2

        @Nullable
        public static GribStatType getStatTypeFromGrib2​(int grib2StatCode)
      • getStatTypeNumber

        public static int getStatTypeNumber​(String name)
      • getCFCellMethod

        @Nullable
        public static CF.CellMethods getCFCellMethod​(GribStatType stat)
        Convert StatType to CF.CellMethods
        Parameters:
        stat - the GRIB1 statistical type
        Returns:
        equivalent CF, or null