|
||||||||||
| 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, parseInfo, raf, useMaximalCoordSys |
| Constructor Summary | |
|---|---|
GribGridServiceProvider()
|
|
| Method Summary | |
|---|---|
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. |
boolean |
sync()
Update the metadata in the NetcdfFile if the underlying dataset has changed. |
| Methods inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
|---|
close, getDetailInfo, isMissingXY, readData, sendIospMessage, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSync, useMaximalCoordSys |
| Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
copyToByteChannel, 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 java.lang.String getFileTypeId()
IOServiceProvider
public java.lang.String getFileTypeDescription()
IOServiceProvider
public void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws java.io.IOException
GridServiceProvider
open in interface IOServiceProvideropen in class GridServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancelling
java.io.IOException - problem reading file
protected void open(ucar.grid.GridIndex index,
CancelTask cancelTask)
throws java.io.IOException
GridServiceProvider
open in class GridServiceProviderindex - GridIndex to usecancelTask - cancel task
java.io.IOException - problem reading the file
public ucar.grid.GridTableLookup getLookup()
throws java.io.IOException
java.io.IOException
protected ucar.grid.GridTableLookup getLookup2()
throws java.io.IOException
java.io.IOException
protected ucar.grid.GridTableLookup getLookup1()
throws java.io.IOException
java.io.IOException
protected 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 error
public boolean sync()
throws java.io.IOException
IOServiceProvider
sync 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 identifier
java.io.IOException - problem reading the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||