|
||||||||||
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.gempak.GempakGridServiceProvider
public class GempakGridServiceProvider
An IOSP for GEMPAK Grid data
Nested Class Summary | |
---|---|
protected static class |
GempakGridServiceProvider.MakeNetcdfFile
TODO: generalize this static class for testing |
Nested classes/interfaces inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
GridServiceProvider.IndexExtendMode |
Field Summary | |
---|---|
static boolean |
extendIndex
Reread the file on a sync |
protected GempakGridReader |
gemreader
GEMPAK 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 | |
---|---|
GempakGridServiceProvider()
|
Method Summary | |
---|---|
protected float[] |
_readData(GridRecord gr)
Read the data for this GridRecord |
String |
getFileTypeDescription()
Get a human-readable description for this file type. |
String |
getFileTypeId()
Get a unique id for this file type. |
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 |
Methods inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
---|
forceNewIndex, getDetailInfo, isMissingXY, readData, sendIospMessage, setDebugFlags, 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 GempakGridReader gemreader
public static boolean extendIndex
Constructor Detail |
---|
public GempakGridServiceProvider()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile to check
IOException
- problem reading filepublic String getFileTypeId()
IOServiceProvider
public String getFileTypeDescription()
IOServiceProvider
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() throws IOException
sync
in interface IOServiceProvider
sync
in class AbstractIOServiceProvider
IOException
- problem synching the fileprotected 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
- arg1 input GEMPAK grid to read,
arg2 output Netcdf file (optional)
IOException
- on io error
IOException
- problem reading or writing filepublic static void setExtendIndex(boolean b)
b
- true to reread the grid on a sync
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |