|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.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.StringBuffer |
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,
java.util.List section)
Read the data for the variable |
Array |
readNestedData(Variable v2,
java.util.List section)
Read nested data |
static void |
setDebugFlags(DebugFlags debugFlag)
Set the debug flags |
void |
setSpecial(java.lang.Object special)
Set the special object on this IOSP |
boolean |
syncExtend()
Sync and extend |
java.lang.String |
toStringDebug(java.lang.Object o)
Debug string info (why is this in the interface?) |
static void |
useMaximalCoordSys(boolean b)
Set whether to use the maximal coordinate system or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.IOServiceProvider |
|---|
isValidFile, sync |
| Field Detail |
|---|
protected FmrcCoordSys fmrcCoordSys
protected NetcdfFile ncfile
protected RandomAccessFile raf
protected java.lang.StringBuffer 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
open in interface IOServiceProviderraf - 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
close in interface IOServiceProviderjava.io.IOException - problem closing filepublic boolean syncExtend()
syncExtend in interface IOServiceProviderpublic java.lang.String getDetailInfo()
getDetailInfo in interface IOServiceProviderpublic java.lang.String toStringDebug(java.lang.Object o)
toStringDebug in interface IOServiceProvidero - object to debug
public Array readNestedData(Variable v2,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
readNestedData in interface IOServiceProviderv2 - Variable to readsection - section info
java.io.IOException - problem reading file
InvalidRangeException - invalid rangepublic void setSpecial(java.lang.Object special)
setSpecial in interface IOServiceProviderspecial - isn't that special?
public Array readData(Variable v2,
java.util.List section)
throws java.io.IOException,
InvalidRangeException
readData in interface IOServiceProviderv2 - 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 | |||||||||