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(ucar.unidata.io.RandomAccessFile raf)Read Grib2SectionIndicator from raf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCenter_id()Identification of center (Common Code Table C-11)intgetDay()intgetHour()intgetLocal_table_version()local table version number (code table 1.1)intgetMaster_table_version()Parameter Table Version number (code table 1.0)intgetMinute()intgetMonth()intgetProductionStatus()production Status (code table 1.3)ucar.nc2.time.CalendarDategetReferenceDate()reference reference or base time as Dare.intgetSecond()intgetSignificanceOfRT()Significance of Reference time (code table 1.2)intgetSubcenter_id()Identification of subcenter (allocated by center)intgetTypeOfProcessedData()Get type Of Processed Data (code table 1.4)intgetYear()StringtoString()booleanuseLocalTablesOnly()Note 2 : if true, all entries come from the local table (!)
-
-
-
Constructor Detail
-
Grib2SectionIdentification
public Grib2SectionIdentification(ucar.unidata.io.RandomAccessFile raf) throws IOExceptionRead 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 ucar.nc2.time.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()
-
-