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

feat(output): allow selecting variables for GRIB output #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frazane
Copy link
Contributor

@frazane frazane commented Jan 30, 2025

Purpose

Allow users to specify a list of variables (a subset of the variables in the state fields) that they want to include in an output GRIB file.

Code changes

  • added a variable keyword to the corresponding classes. When not provided, all fields are written to output.
  • also made a bugfix on L262 of grib.py so it uses the correct param (based on the original local definitions used when creating the anemoi dataset), e.g. in our case T_2M would need to be used instead of 2t.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Now In Progress
Development

Successfully merging this pull request may close these issues.

1 participant