xarray.Dataset.to_dict

Dataset.to_dict()

Convert this dataset to a dictionary following xarray naming conventions.

Converts all variables and attributes to native Python objects Useful for coverting to json. To avoid datetime incompatibility use decode_times=False kwarg in xarrray.open_dataset.