datacube.utils.dask.save_blob_to_file#
- datacube.utils.dask.save_blob_to_file(data, fname, with_deps=None)[source]#
Dump from memory to local filesystem as a dask delayed operation.
- Parameters:
data – Data blob to save to file (have to fit into memory all at once), strings will be saved in UTF8 format.
fname – Path to file
with_deps – Useful for introducing dependencies into dask graph, for example save yaml file after saving all tiff files.
Returns#
(FilePath, True)
tuple on success(FilePath, False)
on any errorNote
Dask workers must be local or have network filesystem mounted in the same path as calling code.