Support xarray and numpy functions in expressions #257
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"
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 fromxcube gen
configurations and from expressions passed toxcube.core.evaluate.evaluate_dataset()
.Describe the solution you'd like
Support the
xr
andnp
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)
The text was updated successfully, but these errors were encountered: