cf.FieldList.exp¶
-
FieldList.
exp
(i=False)[source]¶ For each field, the exponential of the data array.
See also
Examples 1: >>> g = f.exp()
Parameters: - i:
bool
, optional If True then update the field list in place. By default a new field list is created. In either case, a field list is returned.
Returns: - out:
cf.FieldList
For each field, the field list with the exponential of data array values.
Examples 2: >>> f[0].data <CF Data: [[1, 2]]> >>> f.exp()[0].data <CF Data: [[2.71828182846, 7.38905609893]]>
>>> f[0].data <CF Data: [[1, 2]] 2> >>> f.exp()[0].data <CF Data: [[7.38905609893, 54.5981500331]]>
>>> g = f.exp(i=True) >>> g is f True
>>> f[0].data <CF Data: [[1, 2]] kg m-1 s-2> >>> f.exp() ValueError: Can't take exponential of dimensional quantities: <CF Units: kg m-1 s-2>
- i: