|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.jmet.NetcdfGrids
public class NetcdfGrids
Reads data from netCDF NCEP model grids one parameter at a time instead of the whole file (see Plain). This is pretty focused on delivering grids that are renderable in 3D.
| Constructor Summary | |
|---|---|
NetcdfGrids(File filename)
|
|
NetcdfGrids(String filename)
set up to read grids from a netCDF file |
|
| Method Summary | |
|---|---|
Vector |
get3dVariables()
fetch a list of 3D Variable names, long_names, and units for those parameters that have dimensions (x,y,level,record) |
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()
|
Dimension |
getDimension()
|
Integer2DSet |
getDomainSet()
|
Tuple[] |
getGrids(String name,
RealType values,
double[][] range)
fetch the grids for one parameter |
Tuple[][] |
getGridsWithTime(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()
|
String[][] |
getVariableNames()
fetch a list of Variable names, long_names, and units |
static void |
main(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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetcdfGrids(String filename)
filename - is the name of the netCDF file to read frompublic NetcdfGrids(File filename)
| Method Detail |
|---|
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 Vector get4dVariables()
public Vector get3dVariables()
public String[][] getVariableNames()
public double getAspect()
public int getNumberOfLevels()
public double[] getPressureLevels()
public int getNumberOfTimes()
public Dimension getDimension()
public Integer2DSet getDomainSet()
public Tuple[] getGrids(String name,
RealType values,
double[][] range)
name - the name of the parametervalues - the RealType associated with name
public static void main(String[] args)
public Tuple[][] getGridsWithTime(String name,
RealType values,
double[][] range)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||