cf.Domain.attach_to_transform

Domain.attach_to_transform(transform, arg, term=None, **kwargs)[source]

Attach a coordinate construct to a transform.

Parameters :

transform : cf.Transform

arg :

The coordinate to attach, identified as for the item method. See kwargs.

term : sequence of str, optional

kwargs : optional

These keyword arguments are used internally by the item method to customise finding the coordinate.

Returns :

None

Examples

>>> t
<CF Transform: asdkjhfskjfhgslghldkjgf>
>>> d.attach_to_transform(t, 'dim2')
>>> d.attach_to_transform(t, 'longitude', term=['b1'])
>>> d.attach_to_transform(t,
...                       {'standard_name': 'latitude', 
...                        'long_name': 'latitude'},
...                       exact=True, match_all=False)

Previous topic

cf.Domain.analyse

Next topic

cf.Domain.axes

This Page