cf.Filearray

class cf.FileArray(array)

Bases: object

A numpy array stored on disk in a temporary file.

Initialization

Parameters :
array : numpy array

The array to be stored on disk in a temporary file.

Examples

>>> f = FileArray(numpy.ma.array([1, 2, 3, 4, 5]))
copy()

Return a deep copy.

Equivalent to copy.deepcopy(f).

Returns :
out :

A deep copy.

Examples

>>> f.copy()
dtype

Numpy data-type of the array.

Examples

>>> f.dtype
dtype('float64')
ndim

Number of dimensions in the array.

Examples

>>> f.shape
(73, 96)
>>> f.ndim
2
shape

Tuple of the array’s dimension sizes.

Examples

>>> f.shape
(73, 96)
size

Number of elements in the array.

Examples

>>> f.shape
(73, 96)
>>> f.size
7008

Previous topic

cf.PartitionArray

Next topic

cf.CfDict

This Page