Package ucar.nc2.grib.collection
Class Grib1Iosp
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.grib.collection.GribIosp
-
- ucar.nc2.grib.collection.Grib1Iosp
-
- All Implemented Interfaces:
Comparable<ucar.nc2.iosp.IOServiceProvider>,ucar.nc2.iosp.IOServiceProvider
public class Grib1Iosp extends GribIosp
Grib-1 Collection IOSP. Handles both collections and single GRIB files.- Since:
- 4/6/11
-
-
Field Summary
-
Fields inherited from class ucar.nc2.grib.collection.GribIosp
config, debugIndexOnlyCount, gHcs, gribCollection, gribTable, gtype, isGrib1, isPartitioned, owned
-
-
Constructor Summary
Constructors Constructor Description Grib1Iosp()Grib1Iosp(GribCollectionImmutable gc)Grib1Iosp(GribCollectionImmutable.GroupGC gHcs, GribCollectionImmutable.Type gtype)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearLastRecordRead()protected GribTablescreateCustomizer()StringgetFileTypeDescription()StringgetFileTypeId()ObjectgetGribCustomizer()ObjectgetLastRecordRead()protected GribTables.ParametergetParameter(GribCollectionImmutable.VariableIndex vindex)protected StringgetVerticalCoordDesc(int vc_code)booleanisValidFile(ucar.unidata.io.RandomAccessFile raf)StringmakeVariableLongName(GribCollectionImmutable.VariableIndex v)StringmakeVariableName(GribCollectionImmutable.VariableIndex v)static StringmakeVariableName(Grib1Customizer cust, thredds.featurecollection.FeatureCollectionConfig.GribConfig gribConfig, Grib1SectionProductDefinition pds)protected StringmakeVariableUnits(GribCollectionImmutable.VariableIndex vindex)-
Methods inherited from class ucar.nc2.grib.collection.GribIosp
build, close, getDetailInfo, isBuilder, open, readData, sendIospMessage, setLookupTablePath, setParamTable, setParamTablePath
-
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
buildFinish, getFileTypeVersion, getLastModified, getStructureIterator, reacquire, readSection, readToByteChannel, readToOutputStream, release, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebug
-
-
-
-
Constructor Detail
-
Grib1Iosp
public Grib1Iosp()
-
Grib1Iosp
public Grib1Iosp(GribCollectionImmutable.GroupGC gHcs, GribCollectionImmutable.Type gtype)
-
Grib1Iosp
public Grib1Iosp(GribCollectionImmutable gc)
-
-
Method Detail
-
makeVariableName
public String makeVariableName(GribCollectionImmutable.VariableIndex v)
- Specified by:
makeVariableNamein classGribIosp
-
makeVariableName
public static String makeVariableName(Grib1Customizer cust, thredds.featurecollection.FeatureCollectionConfig.GribConfig gribConfig, Grib1SectionProductDefinition pds)
-
makeVariableLongName
public String makeVariableLongName(GribCollectionImmutable.VariableIndex v)
- Specified by:
makeVariableLongNamein classGribIosp
-
makeVariableUnits
protected String makeVariableUnits(GribCollectionImmutable.VariableIndex vindex)
- Specified by:
makeVariableUnitsin classGribIosp
-
isValidFile
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf) throws IOException- Throws:
IOException
-
getFileTypeId
public String getFileTypeId()
-
getFileTypeDescription
public String getFileTypeDescription()
-
createCustomizer
protected GribTables createCustomizer() throws IOException
- Specified by:
createCustomizerin classGribIosp- Throws:
IOException
-
getVerticalCoordDesc
protected String getVerticalCoordDesc(int vc_code)
- Specified by:
getVerticalCoordDescin classGribIosp
-
getParameter
protected GribTables.Parameter getParameter(GribCollectionImmutable.VariableIndex vindex)
- Specified by:
getParameterin classGribIosp
-
getLastRecordRead
public Object getLastRecordRead()
- Specified by:
getLastRecordReadin classGribIosp
-
clearLastRecordRead
public void clearLastRecordRead()
- Specified by:
clearLastRecordReadin classGribIosp
-
getGribCustomizer
public Object getGribCustomizer()
- Specified by:
getGribCustomizerin classGribIosp
-
-