cfdm.Data.copy¶
- Data.copy(array=True)[source]¶
Return a deep copy of the data.
d.copy()is equivalent tocopy.deepcopy(d).Copy-on-write is employed, so care must be taken when modifying any attribute.
- Parameters:
- array:
bool, optional If True (the default) then copy the array, else the array is not copied.
- array:
- Returns:
DataThe deep copy.
Examples
>>> e = d.copy() >>> e = d.copy(array=False)