public class DefaultView extends View
View.DataIterator, View.Domain
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAttributeString, getAttributeString, getConventionsString, getCoordinateVariable, getData, getData, getDimensions, getDomainSet, getInstance, getInstance, getLongName, getNetcdf, getOuterDimensionNameSet, getRangeSet, getRealType, getRealType, getRealTypeFromLongName, getRealTypeFromName, getScalarType, getTextType, getUnitFromAttribute, getUnitString, getVariable, getVetter, getVirtualDataIterator, isCharToText, isCoordinateVariable, isLatitude, isLongitude, isLongitude, isNumeric, isNumeric, isTime, isTime, newName, setOuterDimensionNameSet
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 objectsprotected 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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.