public class AreaReader
extends java.lang.Object
Constructor and Description |
---|
AreaReader()
Default ctor
|
Modifier and Type | Method and Description |
---|---|
boolean |
init(java.lang.String location,
NetcdfFile ncfile)
initialize; note that the file is reopened here
|
static boolean |
isValidFile(RandomAccessFile raf)
Check to see if this is a valid AREA file.
|
Array |
readVariable(Variable v2,
Section section)
Read the values for a variable
|
java.lang.String |
toString() |
public boolean init(java.lang.String location, NetcdfFile ncfile) throws AreaFileException
location
- the AREA file to openncfile
- the netCDF file to fill outAreaFileException
- problem opening the area filepublic static boolean isValidFile(RandomAccessFile raf)
raf
- the file in questionpublic Array readVariable(Variable v2, Section section) throws java.io.IOException, InvalidRangeException
v2
- the variablesection
- the section info (time,x,y range);java.io.IOException
- problem reading fileInvalidRangeException
- range doesn't match datapublic java.lang.String toString()
toString
in class java.lang.Object