cf.Constructs.copy¶
- Constructs.copy(data=True)[source]¶
Return a deep copy.
f.copy()is equivalent tocopy.deepcopy(f).Added in version (cfdm): 1.7.0
- Parameters:
- data:
bool, optional If True (the default) then copy data contained in the metadata constructs.
- data:
- Returns:
ConstructsThe deep copy.
Examples
>>> g = f.copy() >>> g = f.copy(data=False)