类 GRIB2RecordReader


  • public class GRIB2RecordReader
    extends Object
    • 构造器详细资料

      • GRIB2RecordReader

        public GRIB2RecordReader()
        Constructor
      • GRIB2RecordReader

        public GRIB2RecordReader​(String fileName)
        Constructor
        参数:
        fileName - Grib2 file name
    • 方法详细资料

      • open

        public void open​(String fileName)
        Open Grib2 data file
        参数:
        fileName - Grib2 data file name
      • hasNext

        public boolean hasNext()
                        throws IOException
        Get if the scanner has next data record
        返回:
        Has next data record or not
        抛出:
        IOException
      • next

        public ucar.nc2.grib.grib2.Grib2Record next()
                                             throws IOException
        Get next data record
        返回:
        Data record
        抛出:
        IOException
      • getDataRecord

        public ucar.nc2.grib.grib2.Grib2Record getDataRecord​(long position)
                                                      throws IOException
        Get data record from start byte
        参数:
        position - Start byte position
        返回:
        Data record
        抛出:
        IOException
      • getCurrentPosition

        public long getCurrentPosition()
        Get current file position
        返回:
        Current file position
      • readData

        public org.meteoinfo.ndarray.Array readData​(ucar.nc2.grib.grib2.Grib2Record record)
                                             throws IOException
        Read data array
        参数:
        record - Grib2 data record
        返回:
        Data array
        抛出:
        IOException