|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.grid.GeoGridAdapter
public class GeoGridAdapter
Adapt a ucar.unidata.GeoGrid into VisAD Data object(s). GeoGridAdapter gets a Geogrid and has methods to create a a VisAD 2D or 3D FlatField, or sequence of same, from the GeoGrid for parameter names and time(s) desired.
| Field Summary | |
|---|---|
String |
cacheFile
cache file |
| Constructor Summary | |
|---|---|
GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid)
Construct a GeoGridAdapter that will take a GeoGrid and return VisAD Data objects from it. |
|
GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
ucar.nc2.NetcdfFile ncFile)
Construct a GeoGridAdapter that will take a GeoGrid and return VisAD Data objects from it. |
|
GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
String paramName)
Construct a GeoGridAdapter that will take a GeoGrid and return VisAD Data objects from it. |
|
GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
String paramName,
ucar.nc2.NetcdfFile ncFile)
Construct a GeoGridAdapter that will take a GeoGrid and return VisAD Data objects from it. |
|
GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
String paramName,
ucar.nc2.NetcdfFile ncFile,
Object extraCacheKey)
Construct a GeoGridAdapter that will take a GeoGrid and return VisAD Data objects from it. |
|
| Method Summary | |
|---|---|
FieldImpl |
getData()
Get all the data from this GeoGrid. |
protected List |
getLevels()
Create the list of levels for this grid |
FieldImpl |
getSequence()
Get a time ordered sequence of 2D flat fields |
FieldImpl |
getSequence(int[] timeIndices)
Get a time ordered sequence of 2D flat fields |
FieldImpl |
getSequence(int[] timeIndices,
Object loadId)
Get a time ordered sequence of 2D flat fields |
static boolean |
isZAxisOk(ucar.nc2.dataset.CoordinateAxis1D zaxis)
Utility to check if we should ignore the given z axis |
static boolean |
isZUnitOk(Unit zUnit,
ucar.unidata.geoloc.vertical.VerticalTransform vt)
Utility to check if we can handle the vertical transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String cacheFile
| Constructor Detail |
|---|
public GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid)
throws VisADException
dataSource - source of this GeoGridgeoGrid - the GeoGrid in question
VisADException - unable to create one of the VisAD objects
public GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
String paramName)
throws VisADException
dataSource - source of this GeoGridgeoGrid - the GeoGrid in questionparamName - name of the parameter
VisADException - unable to create one of the VisAD objects
public GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
ucar.nc2.NetcdfFile ncFile)
throws VisADException
dataSource - source of this GeoGridgeoGrid - the GeoGrid in questionncFile - file that the GeoGrid data is coming from
VisADException - unable to create one of the VisAD objects
public GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
String paramName,
ucar.nc2.NetcdfFile ncFile)
throws VisADException
dataSource - source of this GeoGridgeoGrid - the GeoGrid in questionparamName - name of the parameterncFile - file that the GeoGrid data is coming from
VisADException - unable to create one of the VisAD objects
public GeoGridAdapter(GeoGridDataSource dataSource,
ucar.nc2.dt.grid.GeoGrid geoGrid,
String paramName,
ucar.nc2.NetcdfFile ncFile,
Object extraCacheKey)
throws VisADException
dataSource - source of this GeoGridgeoGrid - the GeoGrid in questionparamName - name of the parameterncFile - file that the GeoGrid data is coming fromextraCacheKey - Extra key to use when caching
VisADException - unable to create one of the VisAD objects| Method Detail |
|---|
protected List getLevels()
throws VisADException
VisADException - On badnesspublic FieldImpl getSequence()
public FieldImpl getSequence(int[] timeIndices)
timeIndices - indices of times in the data
public FieldImpl getSequence(int[] timeIndices,
Object loadId)
timeIndices - indices of times in the dataloadId - loadId
public FieldImpl getData()
throws VisADException
VisADException - problem creating the gridpublic static boolean isZAxisOk(ucar.nc2.dataset.CoordinateAxis1D zaxis)
zaxis - given z axis
public static boolean isZUnitOk(Unit zUnit,
ucar.unidata.geoloc.vertical.VerticalTransform vt)
zUnit - zUnitvt - vertical transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||