public class GempakGridServiceProvider extends GridServiceProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GempakGridServiceProvider.MakeNetcdfFile
TODO: generalize this
static class for testing
|
GridServiceProvider.IndexExtendMode| 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, indexFileModeOnSync, ncfileraf| Constructor and Description |
|---|
GempakGridServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
_readData(GridRecord gr)
Read the data for this GridRecord
|
String |
getFileTypeDescription() |
String |
getFileTypeId() |
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
static void |
main(String[] args)
Test this class and possibly write out a netCDF 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, getDetailInfo, isMissingXY, readData, sendIospMessage, setDebugFlags, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSyncclose, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, streamToByteChannel, syncExtend, toStringDebugprotected GempakGridReader gemreader
public static boolean extendIndex
public boolean isValidFile(RandomAccessFile raf) throws IOException
raf - RandomAccessFile to checkIOException - problem reading filepublic String getFileTypeId()
public String getFileTypeDescription()
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open in interface IOServiceProvideropen in class GridServiceProviderraf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancellingIOException - problem reading fileprotected void open(GridIndex index, CancelTask cancelTask) throws IOException
open in class GridServiceProviderindex - GridIndex to usecancelTask - cancel taskIOException - problem reading the filepublic boolean sync()
throws IOException
IOException - problem synching the fileprotected float[] _readData(GridRecord gr) throws IOException
_readData in class GridServiceProvidergr - grid identifierIOException - problem reading the datapublic static void main(String[] args) throws IOException
args - arg1 input GEMPAK grid to read,
arg2 output Netcdf file (optional)IOException - on io errorIOException - problem reading or writing filepublic static void setExtendIndex(boolean b)
b - true to reread the grid on a syncCopyright © 1999–2014 UCAR/Unidata. All rights reserved.