public class NetcdfGrids
extends java.lang.Object
| Constructor and Description |
|---|
NetcdfGrids(java.io.File filename) |
NetcdfGrids(java.lang.String filename)
set up to read grids from a netCDF file
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector |
get3dVariables()
fetch a list of 3D Variable names, long_names, and units
for those parameters that have dimensions (x,y,level,record)
|
java.util.Vector |
get4dVariables()
fetch a list of 4D Variable names, long_names, and units
for those parameters that have dimensions (x,y,level,record)
|
double |
getAspect() |
java.awt.Dimension |
getDimension() |
Integer2DSet |
getDomainSet() |
Tuple[] |
getGrids(java.lang.String name,
RealType values,
double[][] range)
fetch the grids for one parameter
|
Tuple[][] |
getGridsWithTime(java.lang.String name,
RealType values,
double[][] range)
fetches grids are returns a Tuple [level][record] of FlatFields
this was implemented to test the offset between mapping to
animator or just doing one at a time...
|
int |
getNumberOfLevels() |
int |
getNumberOfTimes() |
double[] |
getPressureLevels() |
java.lang.String[][] |
getVariableNames()
fetch a list of Variable names, long_names, and units
|
static void |
main(java.lang.String[] args)
Test routine: java NetcdfGrids
|
void |
setRealTypes(RealType x,
RealType y,
RealType level,
RealType time_type,
RealType pres)
set the RealTypes to use for coordinates (x,y,z,t) and pressure
values
|
public NetcdfGrids(java.lang.String filename)
filename - is the name of the netCDF file to read frompublic NetcdfGrids(java.io.File filename)
public void setRealTypes(RealType x, RealType y, RealType level, RealType time_type, RealType pres)
x - X-coordinatey - Y-coordinatelevel - level dimensiontime_type - forecast valid timepres - MathType of vertical coordinate in displaypublic java.util.Vector get4dVariables()
public java.util.Vector get3dVariables()
public java.lang.String[][] getVariableNames()
public double getAspect()
public int getNumberOfLevels()
public double[] getPressureLevels()
public int getNumberOfTimes()
public java.awt.Dimension getDimension()
public Integer2DSet getDomainSet()
public Tuple[] getGrids(java.lang.String name, RealType values, double[][] range)
name - the name of the parametervalues - the RealType associated with namepublic static void main(java.lang.String[] args)