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

User-defined variables #371

Closed
forman opened this issue Jun 24, 2024 · 0 comments · Fixed by #359
Closed

User-defined variables #371

forman opened this issue Jun 24, 2024 · 0 comments · Fixed by #359
Assignees
Labels
enhancement New feature or request

Comments

@forman
Copy link
Member

forman commented Jun 24, 2024

In order to deeper analyse variables of a cube dataset, it is often desired to compute variables from arbitrary band-math expressions.
Users should be able to define new variables and add them to the respective datasets. For example, to analyse the difference of two variables, users should be able to define a new variable chl12_dev = (chl1 - chl2) ** 2.

The user-defined variables should be persisted in the browser's local storage as we currently do not support server-side persistence of user data. To let the server know about user-defined variables, xcube API endpoints that currently receive a variable name in their URL path should then accept an URL-encoded variable assignment expression of the form <var_name>=<var_expr>, where <var_name> is the name user defined variable and <var_expr> is an arbitrary band-math expression.

@forman forman added the enhancement New feature or request label Jun 24, 2024
@forman forman self-assigned this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant