|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.dmi.jog.FileHandling
An IO class reading in and writing out Grid
and Station
data from various
sources.
Method Summary | |
static Grid[] |
readGradsGrid(String ctlfile)
Read in a GrADS binary grid file using control file. |
static Grid[] |
readGrib(String infile)
Returns a Grid of a grib file. |
static void |
writeGradsGrid(String file,
Grid g)
Writes out a GrADS binary grid file and a matching control file. |
static void |
writeGradsGrid(String file,
Grid[] g)
Writes out a GrADS binary grid file and a matching control file. |
static void |
writeGradsGrid(String file,
Grid[] g,
float MISSING)
Writes out a GrADS binary file and a matching control file. |
static void |
writeGradsGrid(String file,
Grid g,
float MISSING)
Writes out a GrADS binary file and a matching control file. |
static void |
writeGradsStations(String file,
Station[] s)
Writes out a GrADS binary station data file and a matching control file. |
static void |
writeGradsStations(String file,
Station[] s,
float MISSING)
Writes out a GrADS binary station data file and a matching control file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Grid[] readGradsGrid(String ctlfile) throws IOException
ctlfile
- name of GrADS control file.
Grid
array read in from a GrADS binary grid file.
IOException
- if an error occurs while trying to read the Grid
.public static Grid[] readGrib(String infile) throws IOException
Grid
of a grib file.
infile
- name of grib file.
Grid
array of a grib file.
IOException
- if an error occurs while trying to read the input file.public static void writeGradsGrid(String file, Grid g) throws IOException
file
- name of GrADS data file. A control file named file.ctl is also created.g
- Grid
to be written out.
IOException
- if an error occurs while trying to write out the Grid
.public static void writeGradsGrid(String file, Grid[] g) throws IOException
file
- name of GrADS data file. A control file named file.ctl is also created.g
- Grid
to be written out.
IOException
- if an error occurs while trying to write out the Grid
.public static void writeGradsGrid(String file, Grid[] g, float MISSING) throws IOException
file
- name of GrADS data file. A control file named file.ctl is also created.g
- Grid
to be written out.MISSING
- value of missing points.
IOException
- if an error occurs while trying to write out the Grid
.public static void writeGradsGrid(String file, Grid g, float MISSING) throws IOException
file
- name of GrADS data file. A control file named file.ctl is also created.g
- Grid
to be written out.MISSING
- value of missing points.
IOException
- if an error occurs while trying to write out the Grid
.public static void writeGradsStations(String file, Station[] s) throws IOException
file
- name of GrADS data file. A control file named file.ctl is also created.s
- Station
array to be written out.
IOException
- if an error occurs while trying to write out the Station
array.public static void writeGradsStations(String file, Station[] s, float MISSING) throws IOException
file
- name of GrADS data file. A control file named file.ctl is also created.s
- Station
array to be written out.MISSING
- value of missing points.
IOException
- if an error occurs while trying to write out the Station
array.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |