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

Cannot set virtual indicator realm individually #1425

Closed
2 tasks done
huard opened this issue Jul 25, 2023 · 0 comments · Fixed by #1426
Closed
2 tasks done

Cannot set virtual indicator realm individually #1425

huard opened this issue Jul 25, 2023 · 0 comments · Fixed by #1426
Assignees
Labels
bug Something isn't working
Milestone

Comments

@huard
Copy link
Collaborator

huard commented Jul 25, 2023

Setup Information

  • Xclim version: dev
  • Python version: 3.10

Description

The realm of individual indicators in yaml files is ignored. It is systematically overwritten by the global realm attribute, and it it doesn't exist, the default atmos.

Steps To Reproduce

Load the following yaml file with xc.core.indicator.build_indicator_module_from_yaml and inspect each indicator's realm. It will be set to seaIce.

doc: |

realm: seaIce

indicators:
  jetstream:
    base: jetstream_metric_woollings
    src_freq: M
    realm: atmos
    keywords: spatial_reduction
  sea_ice_extent:
    base: sea_ice_extent
    realm: ocean
    src_freq: M
    keywords: spatial_reduction

Additional context

No response

Contribution

  • I would be willing/able to open a Pull Request to address this bug.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@huard huard added the bug Something isn't working label Jul 25, 2023
@Zeitsperre Zeitsperre added this to the v0.45.0 milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants