cf.Field.exp¶
-
Field.
exp
(*args, **kwargs)[source]¶ The exponential of the data, element-wise.
The “standard_name” and “long_name” properties are removed from the result.
See also
- Parameters
- Returns
Examples
>>> f.data <CF Data(1, 2): [[1, 2]]> >>> f.exp().data <CF Data(1, 2): [[2.71828182846, 7.38905609893]]>
>>> f.data <CF Data(1, 2): [[1, 2]] 2> >>> f.exp().data <CF Data(1, 2): [[7.38905609893, 54.5981500331]]>
>>> f.data <CF Data(1, 2): [[1, 2]] kg m-1 s-2> >>> f.exp() ValueError: Can't take exponential of dimensional quantities: <Units: kg m-1 s-2>