|
||||||||||
| 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
public abstract class GridServiceProvider
An IOSP for Gempak Grid data
| Field Summary | |
|---|---|
static boolean |
addLatLon
TODO: flag for whether to add lat/lon coordinates |
protected static boolean |
debugMissing
debug flags |
protected static boolean |
debugMissingDetails
debug flags |
protected static boolean |
debugOpen
debug flags |
protected static boolean |
debugProj
debug flags |
protected static boolean |
debugTiming
debug flags |
protected static boolean |
debugVert
debug flags |
protected FmrcCoordSys |
fmrcCoordSys
FMRC coordinate system |
protected NetcdfFile |
ncfile
The netCDF file |
protected java.lang.StringBuilder |
parseInfo
place to store debug stuff |
protected RandomAccessFile |
raf
the file we are reading |
static boolean |
useMaximalCoordSys
flag for using maximal coordinate system |
| Constructor Summary | |
|---|---|
GridServiceProvider()
|
|
| Method Summary | |
|---|---|
protected abstract float[] |
_readData(GridRecord gr)
Read the data for this GridRecord |
void |
close()
Close this IOSP |
java.lang.String |
getDetailInfo()
Get the detail information |
protected abstract 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. |
Array |
readData(Variable v2,
Section section)
Read the data for the variable |
java.lang.Object |
sendIospMessage(java.lang.Object special)
Send an IOSP message |
static void |
setDebugFlags(DebugFlags debugFlag)
Set the debug flags |
boolean |
syncExtend()
Sync and extend |
static void |
useMaximalCoordSys(boolean b)
Set whether to use the maximal coordinate system or not |
| Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
createValidNetcdfObjectName, getStructureIterator, readSection, readToByteChannel, sync, toStringDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.iosp.IOServiceProvider |
|---|
isValidFile |
| Field Detail |
|---|
protected FmrcCoordSys fmrcCoordSys
protected NetcdfFile ncfile
protected RandomAccessFile raf
protected java.lang.StringBuilder parseInfo
protected static boolean debugOpen
protected static boolean debugMissing
protected static boolean debugMissingDetails
protected static boolean debugProj
protected static boolean debugTiming
protected static boolean debugVert
public static boolean addLatLon
public static boolean useMaximalCoordSys
| Constructor Detail |
|---|
public GridServiceProvider()
| Method Detail |
|---|
public static void useMaximalCoordSys(boolean b)
b - true to usepublic static void setDebugFlags(DebugFlags debugFlag)
debugFlag - debug flags
protected abstract void open(GridIndex index,
CancelTask cancelTask)
throws java.io.IOException
index - GridIndex to usecancelTask - cancel task
java.io.IOException - problem reading the file
public void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws java.io.IOException
raf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancelling
java.io.IOException - problem reading file
public void close()
throws java.io.IOException
java.io.IOException - problem closing filepublic boolean syncExtend()
syncExtend in interface IOServiceProvidersyncExtend in class AbstractIOServiceProviderpublic java.lang.String getDetailInfo()
getDetailInfo in interface IOServiceProvidergetDetailInfo in class AbstractIOServiceProviderpublic java.lang.Object sendIospMessage(java.lang.Object special)
sendIospMessage in interface IOServiceProvidersendIospMessage in class AbstractIOServiceProviderspecial - isn't that special?
public Array readData(Variable v2,
Section section)
throws java.io.IOException,
InvalidRangeException
v2 - Variable to readsection - section infomation
java.io.IOException - problem reading from file
InvalidRangeException - invalid RangeRange
protected abstract float[] _readData(GridRecord gr)
throws java.io.IOException
gr - grid identifier
java.io.IOException - problem reading the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||