Package ucar.nc2.grib.collection
Class GribIosp
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.grib.collection.GribIosp
-
- All Implemented Interfaces:
ucar.nc2.iosp.IOServiceProvider
public abstract class GribIosp extends ucar.nc2.iosp.AbstractIOServiceProviderGrib Collection IOSP, version 2. Handles both collections and single GRIB files. Immutable after open() is called.- Since:
- 4/6/11
-
-
Field Summary
Fields Modifier and Type Field Description protected thredds.featurecollection.FeatureCollectionConfigconfigstatic intdebugIndexOnlyCountprotected GribCollectionImmutable.GroupGCgHcsprotected GribCollectionImmutablegribCollectionprotected GribTablesgribTableprotected GribCollectionImmutable.Typegtypeprotected booleanisGrib1protected booleanisPartitionedprotected org.slf4j.Loggerloggerprotected booleanowned
-
Constructor Summary
Constructors Constructor Description GribIosp(boolean isGrib1, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbuild(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.Group.Builder rootGroup, ucar.nc2.util.CancelTask cancelTask)abstract voidclearLastRecordRead()voidclose()protected abstract GribTablescreateCustomizer()StringgetDetailInfo()abstract ObjectgetGribCustomizer()abstract ObjectgetLastRecordRead()protected abstract GribTables.ParametergetParameter(GribCollectionImmutable.VariableIndex vindex)protected abstract StringgetVerticalCoordDesc(int vc_code)booleanisBuilder()protected abstract StringmakeVariableLongName(GribCollectionImmutable.VariableIndex vindex)protected abstract StringmakeVariableName(GribCollectionImmutable.VariableIndex vindex)protected abstract StringmakeVariableUnits(GribCollectionImmutable.VariableIndex vindex)voidopen(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask)ucar.ma2.ArrayreadData(ucar.nc2.Variable v2, ucar.ma2.Section section)ObjectsendIospMessage(Object special)voidsetLookupTablePath(String lookupTablePath)voidsetParamTable(org.jdom2.Element paramTable)voidsetParamTablePath(String paramTablePath)-
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
buildFinish, getFileTypeVersion, getLastModified, getStructureIterator, reacquire, readSection, readToByteChannel, readToOutputStream, release, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebug
-
-
-
-
Field Detail
-
debugIndexOnlyCount
public static int debugIndexOnlyCount
-
config
protected final thredds.featurecollection.FeatureCollectionConfig config
-
isGrib1
protected final boolean isGrib1
-
logger
protected final org.slf4j.Logger logger
-
gribCollection
protected GribCollectionImmutable gribCollection
-
gHcs
protected GribCollectionImmutable.GroupGC gHcs
-
gtype
protected GribCollectionImmutable.Type gtype
-
isPartitioned
protected boolean isPartitioned
-
owned
protected boolean owned
-
gribTable
protected GribTables gribTable
-
-
Method Detail
-
setParamTable
public void setParamTable(org.jdom2.Element paramTable)
-
setLookupTablePath
public void setLookupTablePath(String lookupTablePath)
-
setParamTablePath
public void setParamTablePath(String paramTablePath)
-
sendIospMessage
@Nullable public Object sendIospMessage(Object special)
- Specified by:
sendIospMessagein interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
sendIospMessagein classucar.nc2.iosp.AbstractIOServiceProvider
-
createCustomizer
protected abstract GribTables createCustomizer() throws IOException
- Throws:
IOException
-
makeVariableName
protected abstract String makeVariableName(GribCollectionImmutable.VariableIndex vindex)
-
makeVariableLongName
protected abstract String makeVariableLongName(GribCollectionImmutable.VariableIndex vindex)
-
makeVariableUnits
protected abstract String makeVariableUnits(GribCollectionImmutable.VariableIndex vindex)
-
getVerticalCoordDesc
protected abstract String getVerticalCoordDesc(int vc_code)
-
getParameter
protected abstract GribTables.Parameter getParameter(GribCollectionImmutable.VariableIndex vindex)
-
isBuilder
public boolean isBuilder()
- Specified by:
isBuilderin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
isBuilderin classucar.nc2.iosp.AbstractIOServiceProvider
-
build
public void build(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.Group.Builder rootGroup, ucar.nc2.util.CancelTask cancelTask) throws IOException- Specified by:
buildin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
buildin classucar.nc2.iosp.AbstractIOServiceProvider- Throws:
IOException
-
open
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException- Specified by:
openin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
openin classucar.nc2.iosp.AbstractIOServiceProvider- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
closein classucar.nc2.iosp.AbstractIOServiceProvider- Throws:
IOException
-
getDetailInfo
public String getDetailInfo()
- Specified by:
getDetailInfoin interfaceucar.nc2.iosp.IOServiceProvider- Overrides:
getDetailInfoin classucar.nc2.iosp.AbstractIOServiceProvider
-
readData
public ucar.ma2.Array readData(ucar.nc2.Variable v2, ucar.ma2.Section section) throws IOException, ucar.ma2.InvalidRangeException- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
getLastRecordRead
public abstract Object getLastRecordRead()
-
clearLastRecordRead
public abstract void clearLastRecordRead()
-
getGribCustomizer
public abstract Object getGribCustomizer()
-
-