类 GRIB2RecordReader


  • public class GRIB2RecordReader
    extends java.lang.Object
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()
      Close data file
      long getCurrentPosition()
      Get current file position
      ucar.nc2.grib.grib2.Grib2Record getDataRecord​(long position)
      Get data record from start byte
      boolean hasNext()
      Get if the scanner has next data record
      ucar.nc2.grib.grib2.Grib2Record next()
      Get next data record
      void open​(java.lang.String fileName)
      Open Grib2 data file
      org.meteoinfo.ndarray.Array readData​(ucar.nc2.grib.grib2.Grib2Record record)
      Read data array
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • GRIB2RecordReader

        public GRIB2RecordReader()
        Constructor
      • GRIB2RecordReader

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

      • open

        public void open​(java.lang.String fileName)
        Open Grib2 data file
        参数:
        fileName - Grib2 data file name
      • close

        public void close()
                   throws java.io.IOException
        Close data file
        抛出:
        java.io.IOException
      • hasNext

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

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

        public ucar.nc2.grib.grib2.Grib2Record getDataRecord​(long position)
                                                      throws java.io.IOException
        Get data record from start byte
        参数:
        position - Start byte position
        返回:
        Data record
        抛出:
        java.io.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 java.io.IOException
        Read data array
        参数:
        record - Grib2 data record
        返回:
        Data array
        抛出:
        java.io.IOException