oocgcm.core.utils.map_apply¶
- oocgcm.core.utils.map_apply(func, scalararray)¶
Return a xarray dataarray with value func(scalararray.data)
Parameters: func : function
Any function that works on numpy arrays such that input and output arrays have the same shape.
scalararray : xarray.DataArray
Returns: out : xarray.DataArray
Methods
uses dask map_block without ghost cells (map_overlap)