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 class
GribDataReader.DataReceiver
static interface
GribDataReader.DataReceiverIF
static class
GribDataReader.DataRecord
-
Field Summary
Fields Modifier and Type Field Description static String
currentDataRafFilename
static GribCollectionImmutable.Record
currentDataRecord
protected GribCollectionImmutable
gribCollection
static GribDataValidator
validator
-
Constructor Summary
Constructors Modifier Constructor Description protected
GribDataReader(GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GribDataReader
factory(GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex)
Array
readData(SectionIterable want)
Read the section of data described by wantprotected abstract float[]
readData(RandomAccessFile rafData, GribDataReader.DataRecord dr)
Array
readData2(CoordsSet want, RangeIterator yRange, RangeIterator xRange)
protected abstract void
show(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(RandomAccessFile rafData, GribDataReader.DataRecord dr) throws IOException
- Throws:
IOException
-
show
protected abstract void show(RandomAccessFile rafData, long dataPos) throws IOException
- Throws:
IOException
-
readData
public Array readData(SectionIterable want) throws IOException, InvalidRangeException
Read the section of data described by want- Parameters:
want
- which data do you want?- Returns:
- data as an Array
- Throws:
IOException
InvalidRangeException
-
readData2
public Array readData2(CoordsSet want, RangeIterator yRange, RangeIterator xRange) throws IOException
- Throws:
IOException
-
-