public class Grib2Iosp extends GribIosp
GribIosp.DataReader
config, debugGbxIndexOnly, debugIndexOnlyCount, debugRead, gHcs, GRIB_VALID_TIME, gribCollection, gribTable, gtype, isGrib1, isPartitioned, owned, VARIABLE_ID_ATTNAME
location, ncfile, raf, rafOrder
Constructor and Description |
---|
Grib2Iosp() |
Grib2Iosp(GribCollectionImmutable.GroupGC gHcs,
GribCollectionImmutable.Type gtype) |
Grib2Iosp(GribCollectionImmutable gc) |
Modifier and Type | Method and Description |
---|---|
protected void |
addVariableAttributes(Variable v,
GribCollectionImmutable.VariableIndex vindex) |
void |
clearLastRecordRead() |
protected GribTables |
createCustomizer() |
java.lang.String |
getFileTypeDescription()
Get a human-readable description for this file type.
|
java.lang.String |
getFileTypeId()
Get a unique id for this file type.
|
java.lang.Object |
getGribCustomizer() |
java.lang.Object |
getLastRecordRead() |
protected GribTables.Parameter |
getParameter(GribCollectionImmutable.VariableIndex vindex) |
protected java.lang.String |
getVerticalCoordDesc(int vc_code) |
boolean |
isValidFile(RandomAccessFile raf)
Check if this is a valid file for this IOServiceProvider.
|
static java.lang.String |
makeVariableLongName(Grib2Customizer cust,
GribCollectionImmutable.VariableIndex vindex,
boolean useGenType) |
protected java.lang.String |
makeVariableLongName(GribCollectionImmutable.VariableIndex vindex) |
protected java.lang.String |
makeVariableName(GribCollectionImmutable.VariableIndex vindex) |
protected java.lang.String |
makeVariableNameFromRecord(GribCollectionImmutable.VariableIndex vindex) |
static java.lang.String |
makeVariableNameFromTable(Grib2Customizer tables,
GribCollectionImmutable gribCollection,
GribCollectionImmutable.VariableIndex vindex,
boolean useGenType) |
static java.lang.String |
makeVariableUnits(Grib2Customizer tables,
GribCollectionImmutable.VariableIndex vindex) |
protected java.lang.String |
makeVariableUnits(GribCollectionImmutable.VariableIndex vindex) |
protected float[] |
readData(RandomAccessFile rafData,
ucar.nc2.grib.collection.GribIosp.DataRecord dr) |
protected void |
show(RandomAccessFile rafData,
long pos) |
close, getDetailInfo, open, readData, sendIospMessage, setDebugFlags, setLookupTablePath, setParamTable, setParamTablePath, streamToByteChannel
getFileTypeVersion, getLastModified, getStructureIterator, reacquire, readSection, readToByteChannel, readToOutputStream, release, syncExtend, toStringDebug
public Grib2Iosp()
public Grib2Iosp(GribCollectionImmutable.GroupGC gHcs, GribCollectionImmutable.Type gtype)
public Grib2Iosp(GribCollectionImmutable gc)
public static java.lang.String makeVariableNameFromTable(Grib2Customizer tables, GribCollectionImmutable gribCollection, GribCollectionImmutable.VariableIndex vindex, boolean useGenType)
public static java.lang.String makeVariableLongName(Grib2Customizer cust, GribCollectionImmutable.VariableIndex vindex, boolean useGenType)
protected java.lang.String makeVariableNameFromRecord(GribCollectionImmutable.VariableIndex vindex)
makeVariableNameFromRecord
in class GribIosp
protected java.lang.String makeVariableName(GribCollectionImmutable.VariableIndex vindex)
makeVariableName
in class GribIosp
protected java.lang.String makeVariableLongName(GribCollectionImmutable.VariableIndex vindex)
makeVariableLongName
in class GribIosp
protected java.lang.String makeVariableUnits(GribCollectionImmutable.VariableIndex vindex)
makeVariableUnits
in class GribIosp
public static java.lang.String makeVariableUnits(Grib2Customizer tables, GribCollectionImmutable.VariableIndex vindex)
public boolean isValidFile(RandomAccessFile raf) throws java.io.IOException
IOServiceProvider
raf
- RandomAccessFilejava.io.IOException
- if read errorpublic java.lang.String getFileTypeId()
IOServiceProvider
public java.lang.String getFileTypeDescription()
IOServiceProvider
protected GribTables createCustomizer()
createCustomizer
in class GribIosp
protected java.lang.String getVerticalCoordDesc(int vc_code)
getVerticalCoordDesc
in class GribIosp
protected GribTables.Parameter getParameter(GribCollectionImmutable.VariableIndex vindex)
getParameter
in class GribIosp
protected void addVariableAttributes(Variable v, GribCollectionImmutable.VariableIndex vindex)
addVariableAttributes
in class GribIosp
protected void show(RandomAccessFile rafData, long pos) throws java.io.IOException
protected float[] readData(RandomAccessFile rafData, ucar.nc2.grib.collection.GribIosp.DataRecord dr) throws java.io.IOException
public java.lang.Object getLastRecordRead()
getLastRecordRead
in class GribIosp
public void clearLastRecordRead()
clearLastRecordRead
in class GribIosp
public java.lang.Object getGribCustomizer()
getGribCustomizer
in class GribIosp