Mapping from dimension names to lengths. Cannot be modified directly, but is updated when adding new variables. Note that type of this object differs from `DataArray.dims`. See `DataTree.sizes`, `Dataset.sizes`, and `DataArray.sizes` for consistently named propertie
(self)
| 786 | |
| 787 | @property |
| 788 | def dims(self) -> Mapping[Hashable, int]: |
| 789 | """Mapping from dimension names to lengths. |
| 790 | |
| 791 | Cannot be modified directly, but is updated when adding new variables. |
| 792 | |
| 793 | Note that type of this object differs from `DataArray.dims`. |
| 794 | See `DataTree.sizes`, `Dataset.sizes`, and `DataArray.sizes` for consistently named |
| 795 | properties. |
| 796 | """ |
| 797 | return Frozen(self._dims) |
| 798 | |
| 799 | @property |
| 800 | def sizes(self) -> Mapping[Hashable, int]: |