Convert these coordinates into a new Dataset.
(self)
| 464 | return self._data.variables |
| 465 | |
| 466 | def to_dataset(self) -> Dataset: |
| 467 | """Convert these coordinates into a new Dataset.""" |
| 468 | names = [name for name in self._data._variables if name in self._names] |
| 469 | return self._data._copy_listed(names) |
| 470 | |
| 471 | def __getitem__(self, key: Hashable) -> DataArray: |
| 472 | return self._data[key] |