ratt-ru / dask-ms

Implementation of a dask/xarray dataset backed by a CASA MS
https://dask-ms.readthedocs.io
Other
19 stars 7 forks source link

need flexible ways to specify dask-ms/storage_options.json #234

Closed o-smirnov closed 2 years ago

o-smirnov commented 2 years ago

Current behaviour looks in ~/.config/dask-ms/storage_options.json. This is a little awkward, as (a) this keeps S3 credentials openly listed in a file, and (b) this isn't necessarily a static user default -- the storage options will potentially differ from run to run.

Controlling this via environment variables would be useful. In particular, I would suggest

DASK_MS_STORAGE_OPTIONS_JSON="json text"

...as that makes it easy to set on a per-process basis from within stimela, and also keeps credentials from being written to any disk.