xray.Dataset.variables

Dataset.variables

Dictionary of Variable objects contained in this dataset.

This is a low-level interface into the contents of a dataset. The dictionary is frozen to prevent it from being modified in ways that could create an inconsistent dataset (e.g., by setting variables with inconsistent dimensions).

In general, to access and modify dataset contents, you should use dictionary methods on the dataset itself instead of the variables dictionary.