public class GempakGridServiceProvider extends GridServiceProvider
GridServiceProvider.IndexExtendModeIOServiceProvider.SortGroup| Modifier and Type | Field and Description |
|---|---|
static boolean |
extendIndex
Reread the file on a sync
|
protected GempakGridReader |
gemreader
GEMPAK file reader
|
addLatLon, alwaysInCache, debugMissing, debugMissingDetails, debugOpen, debugProj, debugTiming, debugVert, forceNewIndex, indexFileModeOnOpen, indexFileModeOnSynclocation, ncfile, raf, rafOrder| Constructor and Description |
|---|
GempakGridServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
_readData(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.
|
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
protected void |
open(GridIndex index,
CancelTask cancelTask)
Open the index and create the netCDF file from that
|
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open the service provider for reading.
|
static void |
setExtendIndex(boolean b)
Extend the list of grid
|
boolean |
sync()
Sync the file
|
forceNewIndex, isMissingXY, readData, setDebugFlags, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSyncbuild, buildFinish, close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebugclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, getSortGroupprotected GempakGridReader gemreader
public static boolean extendIndex
public boolean isValidFile(RandomAccessFile raf) throws java.io.IOException
raf - RandomAccessFile to checkjava.io.IOException - problem reading filepublic java.lang.String getFileTypeId()
IOServiceProviderpublic java.lang.String getFileTypeDescription()
IOServiceProviderpublic void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws java.io.IOException
open 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(GridIndex index, CancelTask cancelTask) throws java.io.IOException
open in class GridServiceProviderindex - GridIndex to usecancelTask - cancel taskjava.io.IOException - problem reading the filepublic boolean sync()
throws java.io.IOException
java.io.IOException - problem synching the fileprotected float[] _readData(GridRecord gr) throws java.io.IOException
_readData in class GridServiceProvidergr - grid identifierjava.io.IOException - problem reading the datapublic static void setExtendIndex(boolean b)
b - true to reread the grid on a sync