addition of esm_datastore.to_dask()
#401
Labels
enhancement
Issues that are found to be a reasonable candidate feature additions
esm_datastore.to_dask()
#401
Is your feature request related to a problem? Please describe.
I often encounter the situation where my
search
on intake-ESM returns a result which is representable by a single dataset. I know that this is the case, because I craft my search in a way that this will be the case. However, extracting out the single dataset from the return value ofto_dataset_dict()
is always a bit lengthy.Describe the solution you'd like
As many intake libraries provide the
to_dask()
method to convert a result into an xarray dataset (which probably is a misnomer, but that's what people are using), I propose to addto_dask()
toesm_datastore
which should return a single dataset in caseto_dataset_dict()
would return exactly one item and fail in other cases.Describe alternatives you've considered
I'd consider adding
to_dataset()
with the same functionality as above, but as other libraries seem to have settled onto_dask()
already, I'd rather stay consistent than pedantic.Draft implementation
The text was updated successfully, but these errors were encountered: