|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.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(Netcdf netcdf,
QuantityDB quantityDB)
Constructs from a netCDF dataset and a quantity database. |
Method Summary | |
---|---|
protected View.Domain |
getDomain(Variable var)
Returns the domain of a netCDF variable. |
protected SampledSet |
getDomainSet(Dimension[] dims)
Returns the VisAD domain set corresponding to an array of netCDF dimension in netCDF order (outermost dimension first). |
protected MathType |
getDomainType(Dimension[] dims)
Returns the VisAD MathType corresponding to an array of netCDF
dimensions. |
protected boolean |
isIgnorable(Variable var)
Indicates if a given variable should be ignored during iteration. |
Methods inherited from class visad.data.netcdf.in.View |
---|
getAttributeString, getAttributeString, getConventionsString, getCoordinateVariable, getData, getData, getDimensions, getDomainSet, getInstance, getLongName, getNetcdf, getRangeSet, getRealType, getRealType, getRealTypeFromLongName, getRealTypeFromName, getScalarType, getTextType, getUnitFromAttribute, getUnitString, getVariable, getVetter, getVirtualDataIterator, isCoordinateVariable, isLatitude, isLongitude, isLongitude, isNumeric, isNumeric, isTime, isTime, newName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultView(Netcdf netcdf, QuantityDB quantityDB)
netcdf
- The netCDF dataset.quantityDB
- The quantity database to use to map netCDF
variables to VisAD Quantity-s.Method Detail |
---|
protected boolean isIgnorable(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(Variable var) throws TypeException, java.io.IOException
getDomain
in class View
var
- A netCDF variable.
java.lang.IllegalArgumentException
- if the rank of the variable is zero.
TypeException
- if a RealType
needed to be created but
couldn't.
java.io.IOException
- if a netCDF read-error occurs.protected SampledSet getDomainSet(Dimension[] dims) throws java.io.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.
java.io.IOException
- if a netCDF read-error occurs.protected MathType getDomainType(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 |