|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.AbstractIOServiceProvider
ucar.nc2.iosp.grid.GridServiceProvider
ucar.nc2.iosp.grib.GribGridServiceProvider
public class GribGridServiceProvider
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
GridServiceProvider.IndexExtendMode |
Field Summary |
---|
Fields inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
addLatLon, alwaysInCache, debugMissing, debugMissingDetails, debugOpen, debugProj, debugTiming, debugVert, fmrcCoordSys, forceNewIndex, indexFileModeOnOpen, indexFileModeOnSync, ncfile, useMaximalCoordSys |
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
raf |
Constructor Summary | |
---|---|
GribGridServiceProvider()
|
Method Summary | |
---|---|
protected float[] |
_readData(GridRecord gr)
Read the data for this GridRecord |
String |
getFileTypeDescription()
Get a human-readable description for this file type. |
String |
getFileTypeId()
Get a unique id for this file type. |
protected GridIndex |
getIndex(String dataLocation)
Open the index file. |
GridTableLookup |
getLookup()
|
protected GridTableLookup |
getLookup1()
|
protected GridTableLookup |
getLookup2()
|
boolean |
isValidFile(RandomAccessFile raf)
Check if this is a valid file for this IOServiceProvider. |
protected void |
open(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. |
Object |
sendIospMessage(Object special)
Send an IOSP message |
boolean |
sync()
Update the metadata in the NetcdfFile if the underlying dataset has changed. |
Methods inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
forceNewIndex, getDetailInfo, isMissingXY, readData, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSync, useMaximalCoordSys |
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
close, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, syncExtend, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GribGridServiceProvider()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf)
IOServiceProvider
raf
- RandomAccessFile
public String getFileTypeId()
IOServiceProvider
public String getFileTypeDescription()
IOServiceProvider
public Object sendIospMessage(Object special)
GridServiceProvider
sendIospMessage
in interface IOServiceProvider
sendIospMessage
in class GridServiceProvider
special
- isn't that special?
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
GridServiceProvider
open
in interface IOServiceProvider
open
in class GridServiceProvider
raf
- file to read fromncfile
- netCDF file we are writing to (memory)cancelTask
- task for cancelling
IOException
- problem reading fileprotected void open(GridIndex index, CancelTask cancelTask) throws IOException
GridServiceProvider
open
in class GridServiceProvider
index
- GridIndex to usecancelTask
- cancel task
IOException
- problem reading the filepublic GridTableLookup getLookup() throws IOException
IOException
protected GridTableLookup getLookup2() throws IOException
IOException
protected GridTableLookup getLookup1() throws IOException
IOException
protected GridIndex getIndex(String dataLocation) throws IOException
dataLocation
- location of the file. The index file has ".gbx" appended.
IOException
- on io errorpublic boolean sync() throws IOException
IOServiceProvider
sync
in interface IOServiceProvider
sync
in class AbstractIOServiceProvider
IOException
- if a read error occured when accessing the underlying dataset.protected float[] _readData(GridRecord gr) throws IOException
GridServiceProvider
_readData
in class GridServiceProvider
gr
- grid identifier
IOException
- problem reading the data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |