public class McIDASGridServiceProvider extends GridServiceProvider
GridServiceProvider.IndexExtendMode| Modifier and Type | Field and Description |
|---|---|
protected McIDASGridReader |
mcGridReader
McIDAS file reader
|
addLatLon, alwaysInCache, debugMissing, debugMissingDetails, debugOpen, debugProj, debugTiming, debugVert, fmrcCoordSys, forceNewIndex, indexFileModeOnOpen, indexFileModeOnSync, ncfile, useMaximalCoordSysraf| Constructor and Description |
|---|
McIDASGridServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
_readData(ucar.grid.GridRecord gr)
Read the data for this GridRecord
|
java.lang.String |
getFileTypeDescription()
Get the file type description
|
java.lang.String |
getFileTypeId()
Get the file type id
|
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
static void |
main(java.lang.String[] args)
Test this
|
protected void |
open(ucar.grid.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.
|
boolean |
sync()
Sync and extend
|
forceNewIndex, getDetailInfo, isMissingXY, readData, sendIospMessage, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSync, useMaximalCoordSysclose, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, syncExtend, toStringDebugprotected McIDASGridReader mcGridReader
public boolean isValidFile(RandomAccessFile raf) throws java.io.IOException
raf - RandomAccessFile to checkjava.io.IOException - problem reading filepublic java.lang.String getFileTypeId()
public java.lang.String getFileTypeDescription()
public 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(ucar.grid.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()
sync in interface IOServiceProvidersync in class AbstractIOServiceProviderprotected float[] _readData(ucar.grid.GridRecord gr)
throws java.io.IOException
_readData in class GridServiceProvidergr - grid identifierjava.io.IOException - problem reading the datapublic static void main(java.lang.String[] args)
throws java.io.IOException
args - filenamejava.io.IOException - problem reading file