public class GeoGridAdapter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
cacheFile
cache file
|
Constructor and Description |
---|
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,
java.lang.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,
java.lang.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,
java.lang.String paramName,
ucar.nc2.NetcdfFile ncFile,
java.lang.Object extraCacheKey)
Construct a GeoGridAdapter that will take a GeoGrid and return
VisAD Data objects from it.
|
Modifier and Type | Method and Description |
---|---|
visad.FieldImpl |
getData()
Get all the data from this GeoGrid.
|
protected ucar.nc2.dt.grid.GeoGrid |
getGeoGrid()
Get the geogrid that this adapter uses
|
protected java.util.List |
getLevels()
Create the list of levels for this grid
|
visad.FieldImpl |
getSequence()
Get a time ordered sequence of 2D flat fields
|
visad.FieldImpl |
getSequence(int[] timeIndices)
Get a time ordered sequence of 2D flat fields
|
visad.FieldImpl |
getSequence(int[] timeIndices,
int[] memberIndices,
java.lang.Object loadId)
Get a time ordered sequence of 2D flat fields
|
visad.FieldImpl |
getSequence(int[] timeIndices,
java.lang.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(visad.Unit zUnit,
ucar.unidata.geoloc.vertical.VerticalTransform vt)
Utility to check if we can handle the vertical transform
|
public GeoGridAdapter(GeoGridDataSource dataSource, ucar.nc2.dt.grid.GeoGrid geoGrid) throws visad.VisADException
dataSource
- source of this GeoGridgeoGrid
- the GeoGrid in questionvisad.VisADException
- unable to create one of the VisAD objectspublic GeoGridAdapter(GeoGridDataSource dataSource, ucar.nc2.dt.grid.GeoGrid geoGrid, java.lang.String paramName) throws visad.VisADException
dataSource
- source of this GeoGridgeoGrid
- the GeoGrid in questionparamName
- name of the parametervisad.VisADException
- unable to create one of the VisAD objectspublic GeoGridAdapter(GeoGridDataSource dataSource, ucar.nc2.dt.grid.GeoGrid geoGrid, ucar.nc2.NetcdfFile ncFile) throws visad.VisADException
dataSource
- source of this GeoGridgeoGrid
- the GeoGrid in questionncFile
- file that the GeoGrid data is coming fromvisad.VisADException
- unable to create one of the VisAD objectspublic GeoGridAdapter(GeoGridDataSource dataSource, ucar.nc2.dt.grid.GeoGrid geoGrid, java.lang.String paramName, ucar.nc2.NetcdfFile ncFile) throws visad.VisADException
dataSource
- source of this GeoGridgeoGrid
- the GeoGrid in questionparamName
- name of the parameterncFile
- file that the GeoGrid data is coming fromvisad.VisADException
- unable to create one of the VisAD objectspublic GeoGridAdapter(GeoGridDataSource dataSource, ucar.nc2.dt.grid.GeoGrid geoGrid, java.lang.String paramName, ucar.nc2.NetcdfFile ncFile, java.lang.Object extraCacheKey) throws visad.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 cachingvisad.VisADException
- unable to create one of the VisAD objectsprotected java.util.List getLevels() throws visad.VisADException
visad.VisADException
- On badnessprotected ucar.nc2.dt.grid.GeoGrid getGeoGrid()
public visad.FieldImpl getSequence()
public visad.FieldImpl getSequence(int[] timeIndices)
timeIndices
- indices of times in the datapublic visad.FieldImpl getSequence(int[] timeIndices, java.lang.Object loadId)
timeIndices
- indices of times in the dataloadId
- loadIdpublic visad.FieldImpl getSequence(int[] timeIndices, int[] memberIndices, java.lang.Object loadId)
timeIndices
- indices of times in the datamemberIndices
- the member indicesloadId
- loadIdpublic visad.FieldImpl getData() throws visad.VisADException
visad.VisADException
- problem creating the gridpublic static boolean isZAxisOk(ucar.nc2.dataset.CoordinateAxis1D zaxis)
zaxis
- given z axispublic static boolean isZUnitOk(visad.Unit zUnit, ucar.unidata.geoloc.vertical.VerticalTransform vt)
zUnit
- zUnitvt
- vertical transform