xarray_io
File Purpose: tools for saving/reading xarrays.
Functions
|
return dict of values for engine and encoding, based on inputs, |
returns the best engine (as a str) to use for xarray save operation. |
|
|
return dict of coords, deserialized (result has XarrayIoSerializable objects). |
|
return serializations dict, for all array coords made of XarrayIoSerializable objects. |
|
returns encoding dict for this array (or dataset), to apply compress_dict to every var. |
returns dict of default compression settings, or None if this engine can't do compression. |
|
|
return array with all dict-valued attrs expanded into separate attrs, |
|
return dict of strs for folder, basename (without extension), netcdf_file, text_file, notes_file. |
|
return array with all MultiIndex indexes reset, and relevant info added to array.attrs. |
return array with MultiIndex indexes restored, based on 'reset_multi_index:{d}' attrs. |
|
|
return array (prepped for saving), serializations, and to_netcdf kwargs. |
|
return array with all bool(or None)-valued attrs replaced with strings, |
|
return array with all expanded-dict-valued attrs unexpanded back into dicts. |
return array with all stringified-bool(or None)-valued attrs replaced with bools (or None). |
|
|
load the array or dataset from filename.pcxarr. |
|
xarray_load all .pcxarr files from dirpath, then xr.merge() the results. |
|
saves the array or dataset as filename.nc with a companion text file filename.txt. |
Classes
object that can be serialized when saving/reading xarrays. |