PlasmaCalcs.tools.xarray_tools.xarray_io.xarray_load
- PlasmaCalcs.tools.xarray_tools.xarray_io.xarray_load(filename, *, restore_multi_index=True, unstringify_bool_attrs=True, unexpand_dict_attrs=True, **kw__xarray_open)
- load the array or dataset from filename.pcxarr.
- filename: str
- where to load the array from. Extension “.pcxarr” will be added if not present.
- restore_multi_index: bool
- whether to restore MultiIndexes if ‘reset_multi_index:{d}’ in attrs (for some d)
- unstringify_bool_attrs: bool
- whether to convert stringified-bool-valued attributes back into bools.(stringified-bool-valued attributes have value “__bool=True__” or “__bool=False__”)
- unexpand_dict_attrs: bool
- whether to unexpand expanded-dict-valued attrs attributes back into dicts.(expanded-dict-valued attrs look like “__dictattr_{origattrname}__{dictkey}__”)(will be applied after unstringify_bool_attrs.)
additional kwargs go to xarray.open_dataarray, or xarray.open_datasetif ‘filepath’ not in result.attrs, add ‘filepath’: abspath(filename).