Class Grib1SectionGridDefinition


  • public class Grib1SectionGridDefinition
    extends Object
    The Grid Definition Section for GRIB-1 files Effectively immutable, but caching lazy gds
    • Constructor Detail

      • Grib1SectionGridDefinition

        public Grib1SectionGridDefinition​(byte[] rawData)
        Set Grib Definition section from byte array.
        Parameters:
        rawData - the byte array
    • Method Detail

      • getRawBytes

        public byte[] getRawBytes()
        get the raw bytes of the GDS
        Returns:
        GDS as byte[]
      • calcCRC

        public long calcCRC()
        Calculate the CRC of the entire byte array
        Returns:
        CRC of the entire byte array
      • getLength

        public int getLength()
      • getOffset

        public long getOffset()
      • getGridTemplate

        public int getGridTemplate()
        Get Grid Template number (code table 6)
        Returns:
        Grid Template number.
      • getPredefinedGridDefinition

        public int getPredefinedGridDefinition()
        From pds.getGridDefinition
        Returns:
        pds.getGridDefinition, or -1 if uses a real Grib1SectionGridDefinition
      • isThin

        public final boolean isThin()
        is a "thin" grid
        Returns:
        if a thin grid
      • hasVerticalCoordinateParameters

        public boolean hasVerticalCoordinateParameters()