Skip to content

Configurable showcases#144

Open
cosunae wants to merge 28 commits into
mainfrom
general_meteogram
Open

Configurable showcases#144
cosunae wants to merge 28 commits into
mainfrom
general_meteogram

Conversation

@cosunae
Copy link
Copy Markdown
Contributor

@cosunae cosunae commented May 1, 2026

The idea is to make the generation of showcases configurable.
In the config we can now specify:

  • whether we activate the generation of showcase animations and/or meteograms:
  • a list of locations
  • the region, by name a custom configured extent/projection
  • the parameters

An example

showcase:
  params:
    - T_2M
    - SP_10M
    - TOT_PREC
  meteograms: false
  animations: true
  regions:
    - europe
    - switzerland
    - name: alpine_arc
      extent: [-16.0, 25.0, 30.0, 65.0]
      projection: orthographic

  stations: [JUN, COV, GOR, WFJ, SAE, SAM, DAV, ZER, ANT, VSBAS, BRT, LTB, GOS, CEV, BIA]


Comment thread workflow/Snakefile Outdated
Copy link
Copy Markdown
Contributor

@jonasbhend jonasbhend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good (from looking at it). Will test once balfrin is back online. Could you please include the example config in the code base (e.g. in interpolators-ich1.yaml), otherwise it might be lost.

Comment thread config/interpolators-ich1.yaml Outdated
@cosunae
Copy link
Copy Markdown
Contributor Author

cosunae commented May 6, 2026

@jonasbhend did you have the chance to look at it?

Copy link
Copy Markdown
Contributor

@jonasbhend jonasbhend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cosunae, really nice. I have a minor discussion point (not sure whether we want to do this at all) and there seems to be something wrong with the precipitation scaling in the example config (run as is for meteograms only):

Image

Comment thread config/interpolators-ich1.yaml Outdated
Comment thread workflow/rules/plot.smk
@jonasbhend jonasbhend changed the title General meteogram Configurable showcases May 7, 2026
@jonasbhend jonasbhend mentioned this pull request May 7, 2026
1 task
@cosunae
Copy link
Copy Markdown
Contributor Author

cosunae commented May 7, 2026

Thanks @cosunae, really nice. I have a minor discussion point (not sure whether we want to do this at all) and there seems to be something wrong with the precipitation scaling in the example config (run as is for meteograms only):

Image

thanks @jonasbhend , not sure I understood what would you do here?
It looks like CH2 shows very weird values probably due to the remapping of the grids and the nature of precip, but not sure what you would do with the scale?
Other examples look more reasonable... ?

202503270600_TOT_PREC_JUN

@cosunae
Copy link
Copy Markdown
Contributor Author

cosunae commented May 18, 2026

@jonasbhend is there any other comment on this?
I proposed a different PR for the optimization to unify the processing of regions and locations here:
#154

projection: orthographic
thresholds:
TOT_PREC:
gt: [0.0, 0.001, 0.005]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure to use the new units, TOT_PREC is now in mm (so thresholds should probably be [0.0, 1.0, 5.0]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, where this change in the units came from? Because these values are in the main, should we do this in a different PR?

Copy link
Copy Markdown
Contributor

@jonasbhend jonasbhend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cosunae Good to go after fixing the thresholds (due to change in units) for TOT_PREC in config

This was referenced May 18, 2026
@jonasbhend
Copy link
Copy Markdown
Contributor

Thanks @cosunae, really nice. I have a minor discussion point (not sure whether we want to do this at all) and there seems to be something wrong with the precipitation scaling in the example config (run as is for meteograms only):
Image

thanks @jonasbhend , not sure I understood what would you do here? It looks like CH2 shows very weird values probably due to the remapping of the grids and the nature of precip, but not sure what you would do with the scale? Other examples look more reasonable... ?

202503270600_TOT_PREC_JUN

No need to do anything about it in this PR.

@jonasbhend jonasbhend closed this May 19, 2026
@jonasbhend jonasbhend reopened this May 20, 2026
@jonasbhend
Copy link
Copy Markdown
Contributor

Sorry @cosunae I inadvertently closed this (probably due to my heavily lagging connection yesterday). As said, this is good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants