Class Grib2SectionIndicator


  • @Immutable
    public class Grib2SectionIndicator
    extends Object
    The Indicator Section for GRIB-2 files
    Since:
    3/28/11
    • Constructor Detail

      • Grib2SectionIndicator

        public Grib2SectionIndicator​(ucar.unidata.io.RandomAccessFile raf)
                              throws IOException
        Read Grib2SectionIndicator from raf.
        Parameters:
        raf - RandomAccessFile, with pointer at start (the "GRIB")
        Throws:
        IOException - on I/O error
        IllegalArgumentException - 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