Package ucar.nc2.grib.grib2
Class Grib2SectionIdentification
- java.lang.Object
-
- ucar.nc2.grib.grib2.Grib2SectionIdentification
-
@Immutable public class Grib2SectionIdentification extends Object
The Identification section 1 for GRIB-2 files- Since:
- 3/28/11
-
-
Constructor Summary
Constructors Constructor Description Grib2SectionIdentification(int center_id, int subcenter_id, int master_table_version, int local_table_version, int significanceOfRT, int year, int month, int day, int hour, int minute, int second, int productionStatus, int processedDataType)
Grib2SectionIdentification(RandomAccessFile raf)
Read Grib2SectionIndicator from raf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCenter_id()
Identification of center (Common Code Table C-11)int
getDay()
int
getHour()
int
getLocal_table_version()
local table version number (code table 1.1)int
getMaster_table_version()
Parameter Table Version number (code table 1.0)int
getMinute()
int
getMonth()
int
getProductionStatus()
production Status (code table 1.3)CalendarDate
getReferenceDate()
reference reference or base time as Dare.int
getSecond()
int
getSignificanceOfRT()
Significance of Reference time (code table 1.2)int
getSubcenter_id()
Identification of subcenter (allocated by center)int
getTypeOfProcessedData()
Get type Of Processed Data (code table 1.4)int
getYear()
String
toString()
boolean
useLocalTablesOnly()
Note 2 : if true, all entries come from the local table (!)
-
-
-
Constructor Detail
-
Grib2SectionIdentification
public Grib2SectionIdentification(RandomAccessFile raf) throws IOException
Read Grib2SectionIndicator from raf.- Parameters:
raf
- RandomAccessFile, with pointer at start of indicator section- Throws:
IOException
- on I/O errorIllegalArgumentException
- if not a GRIB-2 record
-
Grib2SectionIdentification
public Grib2SectionIdentification(int center_id, int subcenter_id, int master_table_version, int local_table_version, int significanceOfRT, int year, int month, int day, int hour, int minute, int second, int productionStatus, int processedDataType)
-
-
Method Detail
-
getCenter_id
public int getCenter_id()
Identification of center (Common Code Table C-11)- Returns:
- center id
-
getSubcenter_id
public int getSubcenter_id()
Identification of subcenter (allocated by center)- Returns:
- subcenter
-
getMaster_table_version
public int getMaster_table_version()
Parameter Table Version number (code table 1.0)- Returns:
- master_table_version as int
-
getLocal_table_version
public int getLocal_table_version()
local table version number (code table 1.1)- Returns:
- local_table_version as int
-
useLocalTablesOnly
public boolean useLocalTablesOnly()
Note 2 : if true, all entries come from the local table (!)- Returns:
- useLocalTablesOnly
-
getSignificanceOfRT
public int getSignificanceOfRT()
Significance of Reference time (code table 1.2)- Returns:
- significanceOfRT as int
-
getReferenceDate
public CalendarDate getReferenceDate()
reference reference or base time as Dare.- Returns:
- baseTime
-
getProductionStatus
public int getProductionStatus()
production Status (code table 1.3)- Returns:
- production Status
-
getTypeOfProcessedData
public int getTypeOfProcessedData()
Get type Of Processed Data (code table 1.4)- Returns:
- productType as int
-
getYear
public int getYear()
-
getMonth
public int getMonth()
-
getDay
public int getDay()
-
getHour
public int getHour()
-
getMinute
public int getMinute()
-
getSecond
public int getSecond()
-
-