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

Support xarray and numpy functions in expressions #257

Closed
forman opened this issue Jan 14, 2020 · 0 comments · Fixed by #258
Closed

Support xarray and numpy functions in expressions #257

forman opened this issue Jan 14, 2020 · 0 comments · Fixed by #258
Assignees
Labels
CyanoAlert DCS4COP important This is very important for the project urgent High external pressure to address this ASAP xcube gen This is related to data cube generation, CLI "xcube gen"

Comments

@forman
Copy link
Member

forman commented Jan 14, 2020

Is your feature request related to a problem? Please describe.

For example, we need the conditional function xr.where(cond, case1, case2) to compute new variables from xcube gen configurations and from expressions passed to xcube.core.evaluate.evaluate_dataset().

Describe the solution you'd like

Support the xr and np modules in expressions.

For example, allow the following:

  • where(cond, case1, case2) (translates to --> xr.where(cond, case1, case2))
  • xr.where(cond, case1, case2)
  • np.where(cond, case1, case2)
@forman forman added in progress The assignee is working on it urgent High external pressure to address this ASAP important This is very important for the project xcube gen This is related to data cube generation, CLI "xcube gen" CyanoAlert DCS4COP labels Jan 14, 2020
@forman forman self-assigned this Jan 14, 2020
forman added a commit that referenced this issue Jan 14, 2020
@forman forman removed the in progress The assignee is working on it label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CyanoAlert DCS4COP important This is very important for the project urgent High external pressure to address this ASAP xcube gen This is related to data cube generation, CLI "xcube gen"
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant