# xarray.DataArray.chunk¶

DataArray.chunk(chunks=None, name_prefix='xarray-', token=None, lock=False)

Coerce this array’s data into a dask arrays with the given chunks.

If this variable is a non-dask array, it will be converted to dask array. If it’s a dask array, it will be rechunked to the given chunk sizes.

If neither chunks is not provided for one or more dimensions, chunk sizes along that dimension will not be updated; non-dask arrays will be converted into dask arrays with a single block.

Parameters
Returns

chunked

Return type

xarray.DataArray