|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.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 |
| 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, debugMissing, debugMissingDetails, debugOpen, debugProj, debugTiming, debugVert, fmrcCoordSys, ncfile, parseInfo, raf, useMaximalCoordSys |
| Constructor Summary | |
|---|---|
GempakGridServiceProvider()
|
|
| Method Summary | |
|---|---|
protected float[] |
_readData(GridRecord gr)
Read the data for this GridRecord |
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file? |
static void |
main(java.lang.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. |
static void |
setExtendIndex(boolean b)
Extend the list of grid |
boolean |
sync()
Sync the file |
| Methods inherited from class ucar.nc2.iosp.grid.GridServiceProvider |
|---|
close, getDetailInfo, readData, readNestedData, setDebugFlags, setSpecial, syncExtend, toStringDebug, useMaximalCoordSys |
| 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 java.io.IOException
raf - RandomAccessFile to check
java.io.IOException - problem reading file
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 cancelling
java.io.IOException - problem reading file
protected void open(GridIndex index,
CancelTask cancelTask)
throws java.io.IOException
open in class GridServiceProviderindex - GridIndex to usecancelTask - cancel task
java.io.IOException - problem reading the file
public boolean sync()
throws java.io.IOException
java.io.IOException - problem synching the file
protected float[] _readData(GridRecord gr)
throws java.io.IOException
_readData in class GridServiceProvidergr - grid identifier
java.io.IOException - problem reading the data
public static void main(java.lang.String[] args)
throws java.io.IOException
args - file name
java.io.IOException - problem reading the 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 | |||||||||