类 GRIB2RecordReader
- java.lang.Object
-
- org.meteoinfo.data.meteodata.grib2.GRIB2RecordReader
-
public class GRIB2RecordReader extends Object
-
-
构造器概要
构造器 构造器 说明 GRIB2RecordReader()ConstructorGRIB2RecordReader(String fileName)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()Close data filelonggetCurrentPosition()Get current file positionucar.nc2.grib.grib2.Grib2RecordgetDataRecord(long position)Get data record from start bytebooleanhasNext()Get if the scanner has next data recorducar.nc2.grib.grib2.Grib2Recordnext()Get next data recordvoidopen(String fileName)Open Grib2 data fileorg.meteoinfo.ndarray.ArrayreadData(ucar.nc2.grib.grib2.Grib2Record record)Read data array
-
-
-
构造器详细资料
-
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
-
close
public void close() throws IOExceptionClose data file- 抛出:
IOException
-
hasNext
public boolean hasNext() throws IOExceptionGet if the scanner has next data record- 返回:
- Has next data record or not
- 抛出:
IOException
-
next
public ucar.nc2.grib.grib2.Grib2Record next() throws IOExceptionGet next data record- 返回:
- Data record
- 抛出:
IOException
-
getDataRecord
public ucar.nc2.grib.grib2.Grib2Record getDataRecord(long position) throws IOExceptionGet 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 IOExceptionRead data array- 参数:
record- Grib2 data record- 返回:
- Data array
- 抛出:
IOException
-
-