Closed angus-g closed 2 years ago
I can only think of worse names than return_dataset
. Like return_type='DataArray'
which is kinda awful. return_bounds
is more specific, but makes it harder to add other related variables (like curvilinear grid coords) if that was considered useful in the future, and doesn't indicate the type of the object returned from the function changes.
Looks good. I am happy to merge or let you do it.
This is following the suggestion from https://github.com/COSIMA/cosima-cookbook/issues/284#issuecomment-1034283040, to be able to return a
Dataset
if we need things liketime_bounds
, otherwise default to aDataArray
and don't attach additional attributes. I don't know ifreturn_dataset
is a particularly enlightening name, happy to take suggestions there...Closes #284.