@@ -3312,24 +3312,21 @@ def map_blocks(
3312
3312
3313
3313
This function cannot add a new chunked dimension.
3314
3314
3315
- obj: DataArray, Dataset
3316
- Passed to the function as its first argument, one block at a time.
3317
3315
args: Sequence
3318
3316
Passed to func after unpacking and subsetting any xarray objects by blocks.
3319
- xarray objects in args must be aligned with obj , otherwise an error is raised.
3317
+ xarray objects in args must be aligned with this object , otherwise an error is raised.
3320
3318
kwargs: Mapping
3321
3319
Passed verbatim to func after unpacking. xarray objects, if any, will not be
3322
3320
subset to blocks. Passing dask collections in kwargs is not allowed.
3323
3321
template: (optional) DataArray, Dataset
3324
3322
xarray object representing the final result after compute is called. If not provided,
3325
- the function will be first run on mocked-up data, that looks like ``obj`` but
3323
+ the function will be first run on mocked-up data, that looks like this object but
3326
3324
has sizes 0, to determine properties of the returned object such as dtype,
3327
3325
variable names, attributes, new dimensions and new indexes (if any).
3328
3326
``template`` must be provided if the function changes the size of existing dimensions.
3329
3327
When provided, ``attrs`` on variables in `template` are copied over to the result. Any
3330
3328
``attrs`` set by ``func`` will be ignored.
3331
3329
3332
-
3333
3330
Returns
3334
3331
-------
3335
3332
A single DataArray or Dataset with dask backend, reassembled from the outputs of the
@@ -3341,7 +3338,7 @@ def map_blocks(
3341
3338
subset to each block. In the more common case where ``func`` can work on numpy arrays, it is
3342
3339
recommended to use ``apply_ufunc``.
3343
3340
3344
- If none of the variables in ``obj`` is backed by dask arrays, calling this function is
3341
+ If none of the variables in this object is backed by dask arrays, calling this function is
3345
3342
equivalent to calling ``func(obj, *args, **kwargs)``.
3346
3343
3347
3344
See Also
0 commit comments