Bases: cf.space.VariableList
An ordered sequence of spaces stored in a single, list-like object. Refer to Variable Lists in the cf package for details.
Methods and attributes defined here:
Return the requested coordinate from each space in the list.
CFL.copy() -> a deep copy of CFL
CFL.count(value) -> integer – return number of occurrences of value
Uses numerically tolerant equality.
Delete a private attribute from each element of the list of variables.
Delete a public attribute from each element of the list of variables.
Return a string containing the full descriptions of each variable in the list.
See also
Return the list of variables which match the given phenomena, with only exact phenomenon names allowed.
Return a built-in list of the result of the match on each element of the list of variables, with only exact phenomenon names allowed.
Return True if two lists are congruent in that
- Each pair of their elements are equal.
- Both instances have equal attributes.
Numerical equality is to within a tolerance. Refer to cf for details.
Parameters: |
|
---|---|
Returns: | True if the two objects are congruent, False otherwise. |
Return the list of variables which match the given phenomena, with unambiguous abbreviations of phenomenon names allowed.
Return a built-in list of the private attributes of each element of the list of variables.
Return a built-in list of the public attributes of each element of the list of variables.
CFL.index(value, [start, [stop]]) -> integer – return first index of value
Uses numerically tolerant equality.
CFL.insert(index, object) – insert object before index
Return a built-in list of the result of the match on each element of the list of variables, with unambiguous abbreviations of phenomenon names allowed.
Return a built-in list of the names of each element of the list of variables.
Set a private attribute from each element of the list of variables or return a built-in list of the private attributes of each element of the list of variables.
Set a public attribute from each element of the list of variables or return a built-in list of the public attributes of each element of the list of variables.
Set a private attribute on each element of the list of variables.
Set a public attribute from each element of the list of variables.
Slice each space in the list, returning a new list of spaces. Slicing by indices or by coordinate values are both allowed.
Examples:
>>> sl
[<CF Variable: air_temperature(73, 96)>,
<CF Variable: air_temperature(73, 96)>]
>>> sl.slice[0,0]
[<CF Variable: air_temperature(1,1)>,
<CF Variable: air_temperature(1,1)>]
>>> sl.slice(longitude=0, latitude=0)
[<CF Variable: air_temperature(1,1)>,
<CF Variable: air_temperature(1,1)>]
The types of the data stored in each variable’s Data object.
Returns: | A list of list of type objects for each of the data. |
---|
elements.
Examples:
>>> v.type()
[[<type 'netCDF4.Variable'>]]
>>> v.slice[...]
>>> v.type()
[[<type 'numpy.ndarray'>]]