|
||||||||||
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.mcidas.McIDASGridServiceProvider
public class McIDASGridServiceProvider
An IOSP for McIDAS Grid data
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
GridServiceProvider.IndexExtendMode |
Field Summary | |
---|---|
protected McIDASGridReader |
mcGridReader
McIDAS file reader |
Fields inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
addLatLon, alwaysInCache, debugMissing, debugMissingDetails, debugOpen, debugProj, debugTiming, debugVert, fmrcCoordSys, forceNewIndex, indexFileModeOnOpen, indexFileModeOnSync, ncfile, useMaximalCoordSys |
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
raf |
Constructor Summary | |
---|---|
McIDASGridServiceProvider()
|
Method Summary | |
---|---|
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 |
Methods inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
forceNewIndex, getDetailInfo, isMissingXY, readData, sendIospMessage, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexFileModeOnOpen, setIndexFileModeOnSync, useMaximalCoordSys |
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
close, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, syncExtend, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected McIDASGridReader mcGridReader
Constructor Detail |
---|
public McIDASGridServiceProvider()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile to check
IOException
- problem reading filepublic String getFileTypeId()
public String getFileTypeDescription()
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open
in interface IOServiceProvider
open
in class GridServiceProvider
raf
- file to read fromncfile
- netCDF file we are writing to (memory)cancelTask
- task for cancelling
IOException
- problem reading fileprotected void open(GridIndex index, CancelTask cancelTask) throws IOException
open
in class GridServiceProvider
index
- GridIndex to usecancelTask
- cancel task
IOException
- problem reading the filepublic boolean sync()
sync
in interface IOServiceProvider
sync
in class AbstractIOServiceProvider
protected float[] _readData(GridRecord gr) throws IOException
_readData
in class GridServiceProvider
gr
- grid identifier
IOException
- problem reading the datapublic static void main(String[] args) throws IOException
args
- filename
IOException
- problem reading file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |