public abstract class GribIosp
extends ucar.nc2.iosp.AbstractIOServiceProvider
| Modifier and Type | Class and Description |
|---|---|
protected class |
GribIosp.DataReader |
| Modifier and Type | Field and Description |
|---|---|
protected thredds.featurecollection.FeatureCollectionConfig |
config |
static boolean |
debugGbxIndexOnly |
static int |
debugIndexOnlyCount |
static boolean |
debugRead |
protected GribCollectionImmutable.GroupGC |
gHcs |
static java.lang.String |
GRIB_VALID_TIME |
protected GribCollectionImmutable |
gribCollection |
protected GribTables |
gribTable |
protected GribCollectionImmutable.Type |
gtype |
protected boolean |
isGrib1 |
protected boolean |
isPartitioned |
protected org.slf4j.Logger |
logger |
protected boolean |
owned |
static java.lang.String |
VARIABLE_ID_ATTNAME |
| Constructor and Description |
|---|
GribIosp(boolean isGrib1,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addVariableAttributes(ucar.nc2.Variable v,
GribCollectionImmutable.VariableIndex vindex) |
abstract void |
clearLastRecordRead() |
void |
close() |
protected abstract GribTables |
createCustomizer() |
java.lang.String |
getDetailInfo() |
abstract java.lang.Object |
getGribCustomizer() |
abstract java.lang.Object |
getLastRecordRead() |
protected abstract GribTables.Parameter |
getParameter(GribCollectionImmutable.VariableIndex vindex) |
protected abstract java.lang.String |
getVerticalCoordDesc(int vc_code) |
protected abstract java.lang.String |
makeVariableLongName(GribCollectionImmutable.VariableIndex vindex) |
protected abstract java.lang.String |
makeVariableName(GribCollectionImmutable.VariableIndex vindex) |
protected abstract java.lang.String |
makeVariableNameFromRecord(GribCollectionImmutable.VariableIndex vindex) |
protected abstract java.lang.String |
makeVariableUnits(GribCollectionImmutable.VariableIndex vindex) |
void |
open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask) |
protected abstract float[] |
readData(ucar.unidata.io.RandomAccessFile rafData,
ucar.nc2.grib.collection.GribIosp.DataRecord dr) |
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.Section section) |
java.lang.Object |
sendIospMessage(java.lang.Object special) |
static void |
setDebugFlags(ucar.nc2.util.DebugFlags debugFlag) |
void |
setLookupTablePath(java.lang.String lookupTablePath) |
void |
setParamTable(org.jdom2.Element paramTable) |
void |
setParamTablePath(java.lang.String paramTablePath) |
protected abstract void |
show(ucar.unidata.io.RandomAccessFile rafData,
long pos) |
long |
streamToByteChannel(ucar.nc2.Variable v2,
ucar.ma2.Section section,
java.nio.channels.WritableByteChannel channel) |
getFileTypeVersion, getLastModified, getStructureIterator, reacquire, readSection, readToByteChannel, readToOutputStream, release, syncExtend, toStringDebugpublic static final java.lang.String VARIABLE_ID_ATTNAME
public static final java.lang.String GRIB_VALID_TIME
public static boolean debugRead
public static int debugIndexOnlyCount
public static boolean debugGbxIndexOnly
protected thredds.featurecollection.FeatureCollectionConfig config
protected final boolean isGrib1
protected final org.slf4j.Logger logger
protected GribCollectionImmutable gribCollection
protected GribCollectionImmutable.GroupGC gHcs
protected GribCollectionImmutable.Type gtype
protected boolean isPartitioned
protected boolean owned
protected GribTables gribTable
public static void setDebugFlags(ucar.nc2.util.DebugFlags debugFlag)
public void setParamTable(org.jdom2.Element paramTable)
public void setLookupTablePath(java.lang.String lookupTablePath)
public void setParamTablePath(java.lang.String paramTablePath)
public java.lang.Object sendIospMessage(java.lang.Object special)
sendIospMessage in interface ucar.nc2.iosp.IOServiceProvidersendIospMessage in class ucar.nc2.iosp.AbstractIOServiceProviderprotected abstract GribTables createCustomizer() throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.String makeVariableName(GribCollectionImmutable.VariableIndex vindex)
protected abstract java.lang.String makeVariableLongName(GribCollectionImmutable.VariableIndex vindex)
protected abstract java.lang.String makeVariableNameFromRecord(GribCollectionImmutable.VariableIndex vindex)
protected abstract java.lang.String makeVariableUnits(GribCollectionImmutable.VariableIndex vindex)
protected abstract java.lang.String getVerticalCoordDesc(int vc_code)
protected abstract GribTables.Parameter getParameter(GribCollectionImmutable.VariableIndex vindex)
protected abstract void addVariableAttributes(ucar.nc2.Variable v,
GribCollectionImmutable.VariableIndex vindex)
protected abstract void show(ucar.unidata.io.RandomAccessFile rafData,
long pos)
throws java.io.IOException
java.io.IOExceptionprotected abstract float[] readData(ucar.unidata.io.RandomAccessFile rafData,
ucar.nc2.grib.collection.GribIosp.DataRecord dr)
throws java.io.IOException
java.io.IOExceptionpublic void open(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.NetcdfFile ncfile,
ucar.nc2.util.CancelTask cancelTask)
throws java.io.IOException
open in interface ucar.nc2.iosp.IOServiceProvideropen in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionpublic java.lang.String getDetailInfo()
getDetailInfo in interface ucar.nc2.iosp.IOServiceProvidergetDetailInfo in class ucar.nc2.iosp.AbstractIOServiceProviderpublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
java.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic long streamToByteChannel(ucar.nc2.Variable v2,
ucar.ma2.Section section,
java.nio.channels.WritableByteChannel channel)
throws java.io.IOException,
ucar.ma2.InvalidRangeException
streamToByteChannel in interface ucar.nc2.iosp.IOServiceProviderstreamToByteChannel in class ucar.nc2.iosp.AbstractIOServiceProviderjava.io.IOExceptionucar.ma2.InvalidRangeExceptionpublic abstract java.lang.Object getLastRecordRead()
public abstract void clearLastRecordRead()
public abstract java.lang.Object getGribCustomizer()