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