Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we provide selection of individual years, months, days rather than a range? #177

Open
agstephens opened this issue Jun 17, 2021 · 2 comments

Comments

@agstephens
Copy link
Collaborator

  • clisops version: all
  • Python version: all
  • Operating System: all

Description

C3S might want to allow picking of a list of years, months and days.

xarray can do this, very simply, e.g.:

>>> ds.tas.sel(time=[cftime.DatetimeGregorian(1986, 11, 16), cftime.DatetimeGregorian(1987, 3, 16, 12), cftime.DatetimeGregorian(1987, 9, 16)])  
<xarray.DataArray 'tas' (time: 3, lat: 256, lon: 512)>
@agstephens
Copy link
Collaborator Author

At the moment, we do:

time=<start>/<end>

We will need something like:

year=<y1>,<y2>,<y3> &
month=<m1>,<m2>,<m3>

E.g.: if you want January and July for 2001,2003 and 2010

year=2001,2003,2010&month=01,07

Issues:

  • user can select either time or year/month
  • what about day and hour?

@agstephens
Copy link
Collaborator Author

Link to #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant