cuDataset Methods
|
Type
|
Definition
|
|
None
|
cleardefault()
Clear the default variable name.
|
|
None
|
default_variable(vname )
Set the default variable name.
vname
is the string variable name.
|
|
Array
|
dimensionarray(dname, vname=None)
Values of the axis named dname.
dname
is the string axis name.
vname
is the string variable name. The default is the variable name set by
default_variable
.
|
|
Axis
|
dimensionobject(dname, vname=None)
Get an axis.
dname
is the string name of an axis.
vname
is a string variable name. The default is the variable name set by
default_variable
.
|
|
Various
|
getattribute (vname, attribute)
Get an attribute value.
vname
is a string variable name.
attribute
is the string attribute name.
|
|
String
|
getdimensionunits (dname,vname=None)
Get the units for the given dimension.
dname
is the string name of an axis.
vname
is a string variable name. The default is the variable name set by
default_variable
.
|
|
Various
|
getglobal (attribute)
Get the value of the global attribute.
attribute
is the string attribute name.
|
|
Variable
|
getslab (vname, *args)
Read data for a variable.
vname
is the string name of the variable.
args
is an argument list corresponding to the dimensions of the variable. Arguments for each dimension can be:
(1) `:' or None -- select the entire dimension
(2) Ellipsis -- select entire dimensions between the ones given. (3) a pair of successive arguments giving an interval in world coordinates.
(4) a CDMS-style tuple of world coordinates e.g. (start, stop, `cc')
|
|
List
|
listall (vname=None, all=None)
Get info about data from the file.
vname
is the string name of the variable.
If
all
is non-zero, dimension values, weights, and bounds are returned as well.
|
|
List
|
listattribute (vname=None )
Return a list of attribute names.
vname
is the name of the variable. The default is the variable name set by
default_variable
.
|
|
List
|
listdimension (vname=None)
Return a list of the dimension names associated with a variable.
vname
is the name of the variable. The default is the variable name set by
default_variable
.
|
|
List
|
listglobal ()
Return a list of the global attribute names.
|
|
List
|
listvariable ()
Return a list of the variables in the file.
|
|
None
|
showall (vname=None, all=None, device=sys.stdout)
Print a description of the variable.
vname
is the string name of the variable.
If
all
is non-zero, dimension values, weights, and bounds are returned as well.
Output is sent to
device
.
|
|
None
|
showattribute (vname=None, device=sys.stdout)
Print the attributes of a variable.
vname
is the string name of the variable.
Output is sent to
device
.
|
|
None
|
showdimension (vname=None, device=sys.stdout)
Print the dimension names associated with a variable.
vname
is the string name of the variable.
Output is sent to
device
.
|
|
None
|
showglobal (device=sys.stdout )
Print the global file attributes.
Output is sent to
device
.
|
|
None
|
showvariable (device=sys.stdout )
Print the list of variables in the file.
|