|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.netcdf.in.View visad.data.netcdf.in.DefaultView
public class DefaultView
Provides support for the default view of a netCDF dataset as documented in the netCDF User's Guide.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class visad.data.netcdf.in.View |
---|
View.DataIterator, View.Domain |
Constructor Summary | |
---|---|
DefaultView(ucar.netcdf.Netcdf netcdf,
QuantityDB quantityDB)
Constructs from a netCDF dataset and a quantity database. |
|
DefaultView(ucar.netcdf.Netcdf netcdf,
QuantityDB quantityDB,
boolean charToText)
Constructs from a netCDF dataset and a quantity database. |
Method Summary | |
---|---|
protected View.Domain |
getDomain(ucar.netcdf.Variable var)
Returns the domain of a netCDF variable. |
protected SampledSet |
getDomainSet(ucar.netcdf.Dimension[] dims)
Returns the VisAD domain set corresponding to an array of netCDF dimension in netCDF order (outermost dimension first). |
protected MathType |
getDomainType(ucar.netcdf.Dimension[] dims)
Returns the VisAD MathType corresponding to an array of netCDF
dimensions. |
protected boolean |
isIgnorable(ucar.netcdf.Variable var)
Indicates if a given variable should be ignored during iteration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultView(ucar.netcdf.Netcdf netcdf, QuantityDB quantityDB)
netcdf
- The netCDF dataset.quantityDB
- The quantity database to use to map netCDF
variables to VisAD Quantity-s.public DefaultView(ucar.netcdf.Netcdf netcdf, QuantityDB quantityDB, boolean charToText)
netcdf
- The netCDF dataset.quantityDB
- The quantity database to use to map netCDF
variables to VisAD Quantity-s.charToText
- Specifies whether the View should map char
variables to VisAD Text objectsMethod Detail |
---|
protected boolean isIgnorable(ucar.netcdf.Variable var)
Indicates if a given variable should be ignored during iteration.
This implementation returns the value of View.isCoordinateVariable(Variable)
.
isIgnorable
in class View
true
if and only if the variable
should be ignored.protected View.Domain getDomain(ucar.netcdf.Variable var) throws TypeException, IOException
getDomain
in class View
var
- A netCDF variable.
IllegalArgumentException
- if the rank of the variable is zero.
TypeException
- if a RealType
needed to be created but
couldn't.
IOException
- if a netCDF read-error occurs.protected SampledSet getDomainSet(ucar.netcdf.Dimension[] dims) throws IOException, VisADException
Returns the VisAD domain set corresponding to an array of netCDF dimension in netCDF order (outermost dimension first).
This implementation supports 1-dimensional coordinate variables,
1-dimensional longitude, and 2-dimensional latitude/longitude domains
and assumes that each netCDF dimension is independent of all others.
This implementation uses View.getDomainSet(Dimension)
, View.getDomainSet(Dimension)
, and getDomainType(Dimension[])
.
dims
- A netCDF domain. Must be in netCDF order
(outer dimension first).
dims
.
VisADException
- Couldn't create necessary VisAD object.
IOException
- if a netCDF read-error occurs.protected MathType getDomainType(ucar.netcdf.Dimension[] dims) throws VisADException
Returns the VisAD MathType
corresponding to an array of netCDF
dimensions. If the array has zero length, then null
is
returned.
This implementation uses View.getRealType(Dimension)
.
dims
- netCDF dimensions in netCDF order (outermost
dimension first).
dims
. RETURN_VALUE is
null
, a RealType
,
or a RealTupleType
if
dims.length
is 0, 1, or greater
than 1, respectively.
VisADException
- Couldn't create necessary VisAD object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |