cfdm.NumpyArray.copy

NumpyArray.copy()[source]

Return a deep copy of the array.

a.copy() is equivalent to ``copy.deepcopy(a).

Copy-on-write is employed. Therefore, after copying, care must be taken when making in-place modifications to attributes of either the original or the new copy.

New in version (cfdm): 1.8.7.0

Returns
NumpyArray

The deep copy.

Examples:

>>> b = a.copy()