|
|||||||||
| 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, createValidNetcdfObjectName, 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 IOServiceProvidersendIospMessage in class GridServiceProviderspecial - isn't that special?
public void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws IOException
GridServiceProvider
open in interface IOServiceProvideropen in class GridServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancelling
IOException - problem reading file
protected void open(GridIndex index,
CancelTask cancelTask)
throws IOException
GridServiceProvider
open in class GridServiceProviderindex - GridIndex to usecancelTask - cancel task
IOException - problem reading the file
public 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 error
public boolean sync()
throws IOException
IOServiceProvider
sync in interface IOServiceProvidersync in class AbstractIOServiceProviderIOException - if a read error occured when accessing the underlying dataset.
protected float[] _readData(GridRecord gr)
throws IOException
GridServiceProvider
_readData in class GridServiceProvidergr - grid identifier
IOException - problem reading the data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||