cf.Domain.insert_dim_coordinate

Domain.insert_dim_coordinate(coord, key=None, transforms=None, copy=True, replace=True)[source]

Insert a new dimension coordinate to the domain in place, preserving internal consistency.

Parameters :
coord : cf.Coordinate

The new dimension coordinate.

key : str, optional

The identifier for the new dimension coordinate. The identifier is of the form 'dimN' where the N part should be replaced by an arbitrary integer greater then or equal to zero. By default a unique identifier will be generated.

transforms : sequence, optional

copy: bool, optional

If False then the dimension coordinate is not copied before insertion. By default it is copied.

replace : bool, optional

If False then do not replace an existing dimension coordinate with the same identifier. By default an existing dimension coordinate with the same identifier is replaced with coord.

Returns :
out : str

The identifier for the new dimension coordinate (see the key parameter).

Examples

>>>

Previous topic

cf.Domain.insert_cell_measure

Next topic

cf.Domain.insert_dimension

This Page