Use Collection
object implementation from NCAR/xcollection in intake-esm
#382
Labels
enhancement
Issues that are found to be a reasonable candidate feature additions
A few weeks ago, we experimented with
Collection
, which provides a high-level mapping of name/key to Xarray.Datasets. Thexcollection.Collection
class is a dict-like class. It subclassescollections.abc.MutableMapping
and provides additional functionality like.map()
: applies a function to each dataset in the collection..choose()
: returns a collection with datasets containing all or any of the specified data variables.Seems it would be convenient/neat to use this Collection in the
.to_dataset_dict()
method i.e. return aCollection
object instead of a regular dictionary of datasets. Usage of this object is likely going to be experimental until https://github.com/TomNicholas/datatree is stable and ready for public usage.The text was updated successfully, but these errors were encountered: