Package ucar.nc2.grib.grib1.tables
Class Grib1Customizer
- java.lang.Object
-
- ucar.nc2.grib.grib1.tables.Grib1Customizer
-
- All Implemented Interfaces:
GribTables
- Direct Known Subclasses:
AfwaTables
,FnmocTables
,JmaTables
,NcarTables
,NcepTables
public class Grib1Customizer extends Object implements GribTables
Interprets grib1 info in a way that may be customized. This class handles the default case, using only standard WMO tables. Subclasses override as needed. Bit of a contradiction, since getParamter() allows different center, subcenter, version (the version is for sure needed) But other tables are fixed by center.- Since:
- 1/13/12
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.grib.GribTables
GribTables.Parameter
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Grib1Customizer(int center, Grib1ParamTables tables)
-
Method Summary
-
-
-
Constructor Detail
-
Grib1Customizer
protected Grib1Customizer(int center, Grib1ParamTables tables)
-
-
Method Detail
-
factory
public static Grib1Customizer factory(Grib1Record proto, Grib1ParamTables tables)
-
factory
public static Grib1Customizer factory(int center, int subcenter, int version, Grib1ParamTables tables)
-
getSubCenterNameStatic
public static String getSubCenterNameStatic(int center, int subcenter)
-
getCenter
public int getCenter()
-
getParameter
public Grib1Parameter getParameter(int center, int subcenter, int tableVersion, int param_number)
-
getGeneratingProcessName
@Nullable public String getGeneratingProcessName(int genProcess)
- Specified by:
getGeneratingProcessName
in interfaceGribTables
-
getGeneratingProcessTypeName
public String getGeneratingProcessTypeName(int genProcess)
- Specified by:
getGeneratingProcessTypeName
in interfaceGribTables
-
getSubCenterName
@Nullable public String getSubCenterName(int subcenter)
-
getSubCenterName
@Nullable public String getSubCenterName(int center, int subcenter)
- Specified by:
getSubCenterName
in interfaceGribTables
-
getParamTime
public Grib1ParamTime getParamTime(Grib1SectionProductDefinition pds)
-
getTimeTypeName
public String getTimeTypeName(int timeRangeIndicator)
-
getStatType
@Nullable public GribStatType getStatType(int timeRangeIndicator)
- Specified by:
getStatType
in interfaceGribTables
-
getParamLevel
public Grib1ParamLevel getParamLevel(Grib1SectionProductDefinition pds)
-
getVertUnit
public VertCoordType getVertUnit(int code)
- Specified by:
getVertUnit
in interfaceGribTables
-
isVerticalCoordinate
public boolean isVerticalCoordinate(int levelType)
-
makeVertUnit
protected VertCoordType makeVertUnit(int code)
-
getLevelNameShort
public String getLevelNameShort(int levelType)
- Specified by:
getLevelNameShort
in interfaceGribTables
-
getLevelDescription
public String getLevelDescription(int levelType)
-
isLayer
public boolean isLayer(int levelType)
-
isPositiveUp
public boolean isPositiveUp(int levelType)
-
getLevelUnits
public String getLevelUnits(int levelType)
-
getLevelDatum
public String getLevelDatum(int levelType)
-
setTimeUnitConverter
public void setTimeUnitConverter(TimeUnitConverter timeUnitConverter)
-
convertTimeUnit
public int convertTimeUnit(int timeUnit)
-
getLevelType
protected VertCoordType getLevelType(int code)
-
readTable3
@Nullable protected Map<Integer,VertCoordType> readTable3(String path)
-
-