# cf.DimensionCoordinate.persist¶

DimensionCoordinate.persist(*args, **kwargs)[source]

Persist the underlying dask array into memory.

This turns an underlying lazy dask array into a equivalent chunked dask array, but now with the results fully computed.

persist is particularly useful when using distributed systems, because the results will be kept in distributed memory, rather than returned to the local process.

Performance

persist causes all delayed operations to be computed.

New in version 3.14.0.

Parameters
bounds: bool, optional

If False then do not persist any bounds data. By default any bound data are also persisted.

inplace: bool, optional

If True then do the operation in-place and return None.

Returns
DimensionCoordinate or None

The construct with persisted data. If the operation was in-place then None is returned.

Examples

>>> g = f.persist()