cf.RegridOperator.get_parameter

RegridOperator.get_parameter(parameter, *default)[source]

Return a regrid operation parameter.

Deprecated at version 3.14.0.

Parameters
parameter: str

The name of the parameter.

default: optional

Return the value of the default parameter if the parameter has not been set.

If set to an Exception instance then it will be raised instead.

New in version 3.14.0.

Returns

The value of the named parameter or the default value, if set.

Examples

>>> r.get_parameter('dst_axes')
['domainaxis1', 'domainaxis0']
>>> r.get_parameter('x')
Traceback
    ...
ValueError: RegridOperator has no 'x' parameter
>>> r.get_parameter('x', 'missing')
'missing'