cf.Data

class cf.Data(data=None)

Bases: cf.utils.CfList

Store CF data array. An ordered list of arrays may be stored which, when concatenated form the desired array.

Parameters:data – Initialize the data from this object, which may be a Data object or a numpy.ndarray or None. Any other type of object returns an empty Data instance.

Special attributes:

Attribute Description
_list  
shape  
order  
direction  
Units  
adim  
elements  

Methods and attributes defined here:

concatenate(*elements)
copy(data=True)

Return a deep copy.

Parameters:data (bool) – Optional. If False then assign the output variable’s data arrays to None, with the expectation that the data will be replaced subsequently. The data object’s metadata are deep copied in any case.
Returns:A deep copy.
count(value)

CFL.count(value) -> integer – return number of occurrences of value

Uses numerically tolerant equality.

dtype
index(value, start=0, stop=None)

CFL.index(value, [start, [stop]]) -> integer – return first index of value

Uses numerically tolerant equality.

insert(index, other)
ndim
remove_dimension(index)
size

Number of elements in the data

Returns:A positive integer
slice

Return an object which, when indexed, returns a slice of the data.

Previous topic

cf.Units

Next topic

cf.VariableList

This Page