- gstools.transform.apply_function(fld, function, field='field', store=True, process=False, keep_mean=True, **kwargs)
Apply function as field transformation.
Field) – Field class containing a generated field.
callable) – Function to use.
str, optional) – Name of field to be transformed. The default is “field”.
bool, optional) – Whether to store field inplace (True/False) or under a given name. The default is True.
bool, optional) – Whether to process in/out fields with trend, normalizer and mean of given Field instance. The default is False.
bool, optional) – Whether to keep the mean of the field if process=True. The default is True.
**kwargs – Keyword arguments forwarded to given function.
ValueError – When function is not callable.
- Return type