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, ncfileraf| Constructor and Description |
|---|
McIDASGridServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
_readData(GridRecord gr)
Read the data for this GridRecord
|
String |
getFileTypeDescription()
Get the file type description
|
String |
getFileTypeId()
Get the file type id
|
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file?
|
static void |
main(String[] args)
Test this
|
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.
|
boolean |
sync()
Sync and extend
|
forceNewIndex, getDetailInfo, isMissingXY, readData, sendIospMessage, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSyncclose, getFileTypeVersion, getLastModified, getStructureIterator, readSection, readToByteChannel, readToOutputStream, streamToByteChannel, syncExtend, toStringDebugprotected McIDASGridReader mcGridReader
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()
protected float[] _readData(GridRecord gr) throws IOException
_readData in class GridServiceProvidergr - grid identifierIOException - problem reading the datapublic static void main(String[] args) throws IOException
args - filenameIOException - problem reading fileCopyright © 1999–2014 UCAR/Unidata. All rights reserved.