|
||||||||||
| 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.CfView
A view of a netCDF dataset according to the Climate and Forecast (CF) conventions.
If this class can't be initialized, then an error message is printed to
System.err and the JVM is terminated.
http://www.cgd.ucar.edu/cms/eaton/netcdf/CF-current.htm| Nested Class Summary | |
(package private) class |
CfView.DataIterator
Iterates over the virtual VisAD data objects in a netCDF dataset according to the CF conventions. |
| Nested classes inherited from class visad.data.netcdf.in.View |
View.Domain |
| Constructor Summary | |
(package private) |
CfView(Netcdf netcdf,
QuantityDB quantDb)
Constructs from a netCDF dataset and a quantity database. |
(package private) |
CfView(Netcdf netcdf,
QuantityDB quantDb,
boolean charToText)
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 RealType |
getRealType(Variable var)
Return the VisAD RealType of a netCDF variable. |
protected Unit |
getUnitFromAttribute(Variable var)
Returns the unit of a netCDF variable according to the variable's unit attribute. |
protected String |
getUnitString(Variable var)
Returns the string value of the unit attribute of a netCDF variable. |
VirtualDataIterator |
getVirtualDataIterator()
Gets an iterator over the virtual VisAD data objects determined by this view. |
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, getInstance, getLongName, getNetcdf, getOuterDimensionNameSet, getRangeSet, getRealType, getRealTypeFromLongName, getRealTypeFromName, getScalarType, getTextType, getVariable, getVetter, isCharToText, isCoordinateVariable, isLatitude, isLongitude, isLongitude, isNumeric, isNumeric, isTime, isTime, newName, setOuterDimensionNameSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
CfView(Netcdf netcdf,
QuantityDB quantDb)
netcdf - The netCDF dataset.quantDb - The default quantity database.
NullPointerException - if the netCDF dataset argument is
null.
IllegalArgumentException - if the netCDF dataset doesn't follow the
conventions of this view.
CfView(Netcdf netcdf,
QuantityDB quantDb,
boolean charToText)
netcdf - The netCDF dataset.quantDb - The default quantity database.charToText - Convert char variables to Text if true
NullPointerException - if the netCDF dataset argument is
null.
IllegalArgumentException - if the netCDF dataset doesn't follow the
conventions of this view.| Method Detail |
protected String getUnitString(Variable var)
null if the unit attribute is missing or invalid.
Because the CF netCDF convention requires the use of the unit attribute,
this method prints a warning message to System.err if the
variable doesn't have a unit attribute.
getUnitString in class Viewvar - A netCDF variable.
var or
null.protected Unit getUnitFromAttribute(Variable var)
Returns the unit of a netCDF variable according to the variable's unit
attribute. Returns null if the unit attribute is missing or
invalid.
getUnitString(Variable) and View.getUnitFromAttribute(Variable).
getUnitFromAttribute in class Viewvar - A netCDF variable.
var or
null.
NullPointerException - if the variable is null.
protected RealType getRealType(Variable var)
throws TypeException
Return the VisAD RealType of a netCDF variable. If the variable is a
type of timestamp and references a non-supported calendar system, then a
warning message is printed to System.err and an attempt is made
to create a new RealType with a different name.
This implementation uses * View#getRealType(Variable).
getRealType in class Viewvar - The netCDF variable.
var.
TypeException - if a corresponding RealType needed
to be created but couldn't.public VirtualDataIterator getVirtualDataIterator()
getVirtualDataIterator in class Viewprotected boolean isIgnorable(Variable var)
Indicates if a given variable should be ignored during iteration.
This implementation returns the logical "or" of View.isCoordinateVariable(Variable), #isAuxCoordVar(Variable), and
#isBoundaryVar(Variable).
isIgnorable in class Viewtrue if and only if the variable
should be ignored.
protected View.Domain getDomain(Variable var)
throws TypeException,
IOException
getDomain in class Viewvar - A netCDF variable.
NullPointerException - if the variable is null.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||