Package ucar.nc2.grib.collection
Class GribDataReader
- java.lang.Object
-
- ucar.nc2.grib.collection.GribDataReader
-
@Immutable public abstract class GribDataReader extends Object
Grib Data Reader. Split from GribIosp, so can be used by GribCoverage.- Since:
- 4/6/11
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGribDataReader.DataReceiverstatic interfaceGribDataReader.DataReceiverIFstatic classGribDataReader.DataRecord
-
Field Summary
Fields Modifier and Type Field Description static StringcurrentDataRafFilenamestatic GribCollectionImmutable.RecordcurrentDataRecordprotected GribCollectionImmutablegribCollectionstatic GribDataValidatorvalidator
-
Constructor Summary
Constructors Modifier Constructor Description protectedGribDataReader(GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GribDataReaderfactory(GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex)ucar.ma2.ArrayreadData(ucar.ma2.SectionIterable want)Read the section of data described by wantprotected abstract float[]readData(ucar.unidata.io.RandomAccessFile rafData, GribDataReader.DataRecord dr)ucar.ma2.ArrayreadData2(ucar.nc2.ft2.coverage.CoordsSet want, ucar.ma2.RangeIterator yRange, ucar.ma2.RangeIterator xRange)protected abstract voidshow(ucar.unidata.io.RandomAccessFile rafData, long dataPos)
-
-
-
Field Detail
-
currentDataRecord
public static GribCollectionImmutable.Record currentDataRecord
-
validator
public static GribDataValidator validator
-
currentDataRafFilename
public static String currentDataRafFilename
-
gribCollection
protected final GribCollectionImmutable gribCollection
-
-
Constructor Detail
-
GribDataReader
protected GribDataReader(GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex)
-
-
Method Detail
-
factory
public static GribDataReader factory(GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex)
-
readData
protected abstract float[] readData(ucar.unidata.io.RandomAccessFile rafData, GribDataReader.DataRecord dr) throws IOException- Throws:
IOException
-
show
protected abstract void show(ucar.unidata.io.RandomAccessFile rafData, long dataPos) throws IOException- Throws:
IOException
-
readData
public ucar.ma2.Array readData(ucar.ma2.SectionIterable want) throws IOException, ucar.ma2.InvalidRangeExceptionRead the section of data described by want- Parameters:
want- which data do you want?- Returns:
- data as an Array
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
readData2
public ucar.ma2.Array readData2(ucar.nc2.ft2.coverage.CoordsSet want, ucar.ma2.RangeIterator yRange, ucar.ma2.RangeIterator xRange) throws IOException- Throws:
IOException
-
-