cfdm.core.Constructs.shallow_copy

Constructs.shallow_copy(_ignore=None)[source]

Return a shallow copy.

copy.copy(f) is equivalent to f.shallow_copy().

Any in-place changes to the actual constructs of the copy will not be seen in the original Constructs object, and vice versa, but the copy and filter history are otherwise independent.

New in version (cfdm): 1.8.9.0

See also

view

Returns
Constructs

The shallow copy.

Examples:

>>> f = cfdm.core.example_field(0)
>>> c = f.constructs
>>> k = c.shallow_copy()