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

Allow for variables computed on-the-fly #272

Closed
forman opened this issue Feb 6, 2020 · 1 comment
Closed

Allow for variables computed on-the-fly #272

forman opened this issue Feb 6, 2020 · 1 comment
Assignees
Labels
CyanoAlert enhancement New feature or request urgent High external pressure to address this ASAP xcube serve This is related to server component, CLI "xcube serve"

Comments

@forman
Copy link
Member

forman commented Feb 6, 2020

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

We'd like to add computed variables to data cubes published by xcube serve.
We already support computed cubes in xcube serve configurations, but that creates entirely new cubes (e.g. resampled in time). We now need to augment existing cubes by newly computed variables.

Describe the solution you'd like

Add a section Augmentation into dataset descriptor, e.g.:

Datasets:
  - Identifier: abc
    ...
    Augmentation:
      Path: compute_new_vars.py

The Augmentation entry may later be extended to also support variables computed from simple expressions:

    Augmentation:
      Variables: 
          - Name: conc_chl_g
            Expression: conc_chl / 1000
            Attributes:
               - units: "g / m^3" 
          - ...          
@forman forman added enhancement New feature or request urgent High external pressure to address this ASAP xcube serve This is related to server component, CLI "xcube serve" CyanoAlert labels Feb 6, 2020
@forman forman self-assigned this Feb 6, 2020
@forman forman added the in progress The assignee is working on it label Feb 6, 2020
@forman forman removed the in progress The assignee is working on it label Feb 11, 2020
@forman
Copy link
Member Author

forman commented Feb 11, 2020

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CyanoAlert enhancement New feature or request urgent High external pressure to address this ASAP xcube serve This is related to server component, CLI "xcube serve"
Projects
None yet
Development

No branches or pull requests

1 participant