public class Grib1Iosp 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 |
---|
Grib1Iosp() |
Grib1Iosp(GribCollectionImmutable.GroupGC gHcs,
GribCollectionImmutable.Type gtype) |
Grib1Iosp(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 void |
main(java.lang.String[] args) |
java.lang.String |
makeVariableLongName(GribCollectionImmutable.VariableIndex v) |
java.lang.String |
makeVariableLongName(int center,
int subcenter,
int version,
int paramNo,
int levelType,
boolean isLayer,
int intvType,
java.lang.String intvName,
java.lang.String probabilityName) |
static java.lang.String |
makeVariableName(Grib1Customizer cust,
FeatureCollectionConfig.GribConfig gribConfig,
Grib1SectionProductDefinition pds) |
java.lang.String |
makeVariableName(GribCollectionImmutable.VariableIndex v) |
java.lang.String |
makeVariableNameFromRecord(GribCollectionImmutable.VariableIndex v) |
protected java.lang.String |
makeVariableUnits(GribCollectionImmutable.VariableIndex vindex) |
java.lang.String |
makeVariableUnits(int center,
int subcenter,
int version,
int paramNo) |
protected float[] |
readData(RandomAccessFile rafData,
ucar.nc2.grib.collection.GribIosp.DataRecord dr) |
protected void |
show(RandomAccessFile rafData,
long dataPos) |
close, getDetailInfo, open, readData, sendIospMessage, setDebugFlags, setLookupTablePath, setParamTable, setParamTablePath, streamToByteChannel
getFileTypeVersion, getLastModified, getStructureIterator, reacquire, readSection, readToByteChannel, readToOutputStream, release, syncExtend, toStringDebug
public Grib1Iosp()
public Grib1Iosp(GribCollectionImmutable.GroupGC gHcs, GribCollectionImmutable.Type gtype)
public Grib1Iosp(GribCollectionImmutable gc)
public java.lang.String makeVariableName(GribCollectionImmutable.VariableIndex v)
makeVariableName
in class GribIosp
public java.lang.String makeVariableNameFromRecord(GribCollectionImmutable.VariableIndex v)
makeVariableNameFromRecord
in class GribIosp
public static java.lang.String makeVariableName(Grib1Customizer cust, FeatureCollectionConfig.GribConfig gribConfig, Grib1SectionProductDefinition pds)
public java.lang.String makeVariableLongName(GribCollectionImmutable.VariableIndex v)
makeVariableLongName
in class GribIosp
public java.lang.String makeVariableLongName(int center, int subcenter, int version, int paramNo, int levelType, boolean isLayer, int intvType, java.lang.String intvName, java.lang.String probabilityName)
protected java.lang.String makeVariableUnits(GribCollectionImmutable.VariableIndex vindex)
makeVariableUnits
in class GribIosp
public java.lang.String makeVariableUnits(int center, int subcenter, int version, int paramNo)
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() throws java.io.IOException
createCustomizer
in class GribIosp
java.io.IOException
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 dataPos) 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
public static void main(java.lang.String[] args)