public class GribGridServiceProvider extends GridServiceProvider
GridServiceProvider.IndexExtendModeaddLatLon, alwaysInCache, debugMissing, debugMissingDetails, debugOpen, debugProj, debugTiming, debugVert, fmrcCoordSys, forceNewIndex, indexFileModeOnOpen, indexFileModeOnSync, ncfile, useMaximalCoordSysraf| Constructor and Description |
|---|
GribGridServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
_readData(ucar.grid.GridRecord gr)
Read the data for this GridRecord
|
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.
|
protected ucar.grid.GridIndex |
getIndex(java.lang.String dataLocation)
Open the index file.
|
ucar.grid.GridTableLookup |
getLookup() |
protected ucar.grid.GridTableLookup |
getLookup1() |
protected ucar.grid.GridTableLookup |
getLookup2() |
boolean |
isValidFile(RandomAccessFile raf)
Check if this is a valid file for this IOServiceProvider.
|
protected void |
open(ucar.grid.GridIndex index,
CancelTask cancelTask)
Use the given index to fill the NetcdfFile object with attributes and variables.
|
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open the service provider for reading.
|
java.lang.Object |
sendIospMessage(java.lang.Object special)
Send an IOSP message
|
boolean |
sync()
Update the metadata in the NetcdfFile if the underlying dataset has changed.
|
forceNewIndex, getDetailInfo, isMissingXY, readData, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSync, useMaximalCoordSysclose, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, syncExtend, toStringDebugpublic boolean isValidFile(RandomAccessFile raf)
IOServiceProviderraf - RandomAccessFilepublic java.lang.String getFileTypeId()
IOServiceProviderpublic java.lang.String getFileTypeDescription()
IOServiceProviderpublic java.lang.Object sendIospMessage(java.lang.Object special)
GridServiceProvidersendIospMessage in interface IOServiceProvidersendIospMessage in class GridServiceProviderspecial - isn't that special?public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws java.io.IOException
GridServiceProvideropen in interface IOServiceProvideropen in class GridServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancellingjava.io.IOException - problem reading fileprotected void open(ucar.grid.GridIndex index,
CancelTask cancelTask)
throws java.io.IOException
GridServiceProvideropen in class GridServiceProviderindex - GridIndex to usecancelTask - cancel taskjava.io.IOException - problem reading the filepublic ucar.grid.GridTableLookup getLookup()
throws java.io.IOException
java.io.IOExceptionprotected ucar.grid.GridTableLookup getLookup2()
throws java.io.IOException
java.io.IOExceptionprotected ucar.grid.GridTableLookup getLookup1()
throws java.io.IOException
java.io.IOExceptionprotected ucar.grid.GridIndex getIndex(java.lang.String dataLocation)
throws java.io.IOException
dataLocation - location of the file. The index file has ".gbx" appended.java.io.IOException - on io errorpublic boolean sync()
throws java.io.IOException
IOServiceProvidersync in interface IOServiceProvidersync in class AbstractIOServiceProviderjava.io.IOException - if a read error occured when accessing the underlying dataset.protected float[] _readData(ucar.grid.GridRecord gr)
throws java.io.IOException
GridServiceProvider_readData in class GridServiceProvidergr - grid identifierjava.io.IOException - problem reading the data