Variable¶
-
class
metpy.io.cdm.Variable(**kwargs)[source]¶ Holds typed data (using a
numpy.ndarray), as well as attributes (e.g. units).In addition to its various attributes, the Variable supports getting and setting data using the
[]operator and indices or slices. Getting data returnsnumpy.ndarrayinstances.Attributes Summary
datatypeDescribes the layout of each element of the data. dimensionsall the names of Dimensionused by thisVariable.dtypeDescribes the layout of each element of the data. namethe name of the variable. ndimthe number of dimensions used by this variable. shapeDescribes the size of the Variable along each of its dimensions. sizethe total number of elements. Methods Summary
__init__(**kwargs)group()Get the Group that owns this Variable. ncattrs()Get a list of the names of the netCDF attributes. Attributes Documentation
-
datatype¶ Describes the layout of each element of the data.
Type: numpy.dtype
-
dtype¶ Describes the layout of each element of the data.
Type: numpy.dtype
Methods Documentation
-
__init__(**kwargs)¶
-
ncattrs()¶ Get a list of the names of the netCDF attributes.
Returns: List[str]
-