Package ucar.nc2.grib
Enum GribStatType
- java.lang.Object
-
- java.lang.Enum<GribStatType>
-
- ucar.nc2.grib.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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Accumulation
Average
Covariance
DifferenceFromEnd
DifferenceFromStart
Maximum
Minimum
Ratio
RootMeanSquare
StandardDeviation
Variance
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CF.CellMethods
getCFCellMethod(GribStatType stat)
Convert StatType to CF.CellMethodsstatic GribStatType
getStatTypeFromGrib2(int grib2StatCode)
static int
getStatTypeNumber(String name)
static GribStatType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GribStatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Average
public static final GribStatType Average
-
Accumulation
public static final GribStatType Accumulation
-
Maximum
public static final GribStatType Maximum
-
Minimum
public static final GribStatType Minimum
-
DifferenceFromEnd
public static final GribStatType DifferenceFromEnd
-
RootMeanSquare
public static final GribStatType RootMeanSquare
-
StandardDeviation
public static final GribStatType StandardDeviation
-
Covariance
public static final GribStatType Covariance
-
DifferenceFromStart
public static final GribStatType DifferenceFromStart
-
Ratio
public static final GribStatType Ratio
-
Variance
public static final GribStatType Variance
-
-
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 nameNullPointerException
- 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
-
-