Package ucar.nc2.grib.grib2
Class Grib2SectionIndicator
- java.lang.Object
-
- ucar.nc2.grib.grib2.Grib2SectionIndicator
-
@Immutable public class Grib2SectionIndicator extends Object
The Indicator Section for GRIB-2 files- Since:
- 3/28/11
-
-
Constructor Summary
Constructors Constructor Description Grib2SectionIndicator(long startPos, long messageLength, int discipline)
Grib2SectionIndicator(RandomAccessFile raf)
Read Grib2SectionIndicator from raf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDiscipline()
Discipline - GRIB Master Table Number.long
getEndPos()
long
getMessageLength()
Get the length of this GRIB record in bytes.long
getStartPos()
-
-
-
Constructor Detail
-
Grib2SectionIndicator
public Grib2SectionIndicator(RandomAccessFile raf) throws IOException
Read Grib2SectionIndicator from raf.- Parameters:
raf
- RandomAccessFile, with pointer at start (the "GRIB")- Throws:
IOException
- on I/O errorIllegalArgumentException
- if not a GRIB-2 record
-
Grib2SectionIndicator
public Grib2SectionIndicator(long startPos, long messageLength, int discipline)
-
-
Method Detail
-
getMessageLength
public long getMessageLength()
Get the length of this GRIB record in bytes.- Returns:
- length in bytes of GRIB record
-
getStartPos
public long getStartPos()
-
getEndPos
public long getEndPos()
-
getDiscipline
public int getDiscipline()
Discipline - GRIB Master Table Number.- Returns:
- discipline number
-
-