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

Add presets to name PNG-files produced at AWS and CSCS differently. F… #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- Pirmin Kaufmann <[email protected]>
- Marco Ketzel
- Mathis Kretz
- Néstor Tarin Burriel <[email protected]>
- Néstor Tarin Burriel <[email protected]>
- Tobias Wicky

## Maintainer
Expand Down
65 changes: 65 additions & 0 deletions src/pyflexplot/data/presets/aws/icon-ch1-ctrl/all_pdf.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# PyFlexPlot setup file to create deterministic ICON-CH1-CTRL plots

[_base]
# Test data source: /store_new/mch/msopr/pyflexplot_testdata/
infile = "data/icon-ch1-ctrl/grid_conc_20240604210000_BUG.nc"
model = "ICON-CH1-CTRL"
lang = "de"
outfile_time_format = "%Y%m%dT%H%M"
combine_species = false

[_base._concentration]
plot_variable = "concentration"
level = 0

[_base._concentration._integr]
integrate = true
time = -1

[_base._tot_deposition]
plot_variable = "tot_deposition"
integrate = true

[_base._affected_area]
plot_variable = "affected_area"
integrate = true
level = 0
time = -1
combine_species = true

[_base._concentration._multipanel_time]
plot_type = "multipanel"
multipanel_param = "time"
time = [2, 4, 8, -1]

[_base._concentration.full]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Konzentration.pdf"
domain = "full"
[_base._concentration._integr.full]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_integrierte_Luftaktivitaet.pdf"
domain = "full"
[_base._tot_deposition.full]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Deposition.pdf"
domain = "full"
[_base._affected_area.full]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_beaufschl_Gebiet.pdf"
domain = "full"
[_base._concentration._multipanel_time.full]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Konzentration.pdf"
domain = "full"

[_base._concentration.zoom]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Konzentration_zoom.pdf"
domain = "ch"
[_base._concentration._integr.zoom]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_integrierte_Luftaktivitaet_zoom.pdf"
domain = "ch"
[_base._tot_deposition.zoom]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Deposition_zoom.pdf"
domain = "ch"
[_base._affected_area.zoom]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_beaufschl_Gebiet_zoom.pdf"
domain = "ch"
[_base._concentration._multipanel_time.zoom]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Konzentration_zoom.pdf"
domain = "ch"
49 changes: 49 additions & 0 deletions src/pyflexplot/data/presets/aws/icon-ch1-ctrl/all_png.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# PyFlexPlot setup file to create deterministic ICON-CH1-CTRL plots

[_base]
# Test data source: /store_new/mch/msopr/pyflexplot_testdata/
infile = "data/icon-ch1-ctrl/grid_conc_20240604210000_BUG.nc"
model = "ICON-CH1-CTRL"
lang = "de"
outfile_time_format = "%Y%m%dT%H%M"
combine_species = false
outfile = "forecast-iconch1eps-dispersion-aws~{base_time}~{plot_variable}~{domain}~{release_site}~1~{time_step}.png"

[_base._concentration]
plot_variable = "concentration"
level = 0

[_base._concentration._integr]
integrate = true
time = -1

[_base._tot_deposition]
plot_variable = "tot_deposition"
integrate = true

[_base._affected_area]
plot_variable = "affected_area"
integrate = true
level = 0
time = -1
combine_species = true

[_base._concentration."_png+"]

[_base._concentration._integr."_png+"]

[_base._tot_deposition."_png+"]

[_base._affected_area."_png+"]

# [_base._concentration."_multipanel_time+"]
# outfile = "forecast-iconch1eps-dispersion-aws~{base_time}~concentration~{domain}~{release_site}~1~{time_step}.png"
# plot_type = "multipanel"
# multipanel_param = "time"
# time = [2, 4, 8, -1]

["**".full]
domain = "full"

["**".zoom]
domain = "ch"
49 changes: 49 additions & 0 deletions src/pyflexplot/data/presets/aws/icon-ch1-ctrl/all_shp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# PyFlexPlot setup file to create deterministic ICON-CH1-CTRL shapefiles

[_base]
# Test data source: /store_new/mch/msopr/pyflexplot_testdata/
infile = "data/icon-ch1-ctrl/grid_conc_20240604210000_BUG.nc"
model = "ICON-CH1-CTRL"
lang = "de"
outfile_time_format = "%Y%m%dT%H%M"
combine_species = false

[_base._concentration]
plot_variable = "concentration"
level = 0

[_base._concentration._integr]
integrate = true
time = -1

[_base._tot_deposition]
plot_variable = "tot_deposition"
integrate = true

[_base._affected_area]
plot_variable = "affected_area"
integrate = true
level = 0
time = -1
combine_species = true

[_base._concentration."_shp+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Konzentration_{time_step}.shp"
[_base._concentration._integr."_shp+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_integrierte_Luftaktivitaet.shp"
[_base._tot_deposition."_shp+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_Deposition_{time_step}.shp"
[_base._affected_area."_shp+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_Dispersion_beaufschl_Gebiet.shp"

# [_base._concentration."_multipanel_time+"]
# outfile = "concentration_site-{release_site}_species-{species_id}_domain-{domain}_lang-{lang}_ts-{time_step}.shp"
# plot_type = "multipanel"
# multipanel_param = "time"
# time = [2, 4, 8, -1]

["**".full]
domain = "full"

# ["**".zoom]
# domain = "ch"
133 changes: 133 additions & 0 deletions src/pyflexplot/data/presets/aws/icon-ch2-eps/all_pdf.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# PyFlexPlot setup file to create ensemble ICON-CH2-EPS plots

[_base]
# Test data source: /store_new/mch/msopr/pyflexplot_testdata/
infile = "data/icon-ch2-eps/{ens_member:03}/grid_conc_20240604210000_BUG.nc"
ens_member_id = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
model = "ICON-CH2-EPS"
lang = "de"
outfile_time_format = "%Y%m%dT%H%M"
combine_species = true

[_base._concentration]
plot_variable = "concentration"
level = 0
integrate = false
time = "*"

[_base._concentration._integr]
integrate = true
time = -1

[_base._tot_deposition]
plot_variable = "tot_deposition"
integrate = true
time = -1

[_base._affected_area]
plot_variable = "affected_area"
integrate = true
level = 0
time = -1

[_base._concentration."_probability+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_probability_{domain}.pdf"
ens_variable = "probability"
ens_param_thr = 0
[_base._concentration._integr."_probability+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_probability_{domain}.pdf"
ens_variable = "probability"
ens_param_thr = 0
[_base._tot_deposition."_probability+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_probability_{domain}.pdf"
ens_variable = "probability"
ens_param_thr = 0
[_base._affected_area."_probability+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_probability_{domain}.pdf"
ens_variable = "probability"
ens_param_thr = 0

[_base._concentration."_probability+"."_multipanel_time+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_probability_{domain}.pdf"
plot_type = "multipanel"
multipanel_param = "time"
time = [2, 4, 8, -1]

[_base._concentration._integr."_pctl95+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_percentile_{domain}.pdf"
ens_variable = "percentile"
ens_param_pctl = 95
[_base._tot_deposition."_pctl95+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_percentile_{domain}.pdf"
ens_variable = "percentile"
ens_param_pctl = 95
[_base._affected_area."_pctl95+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_percentile_{domain}.pdf"
ens_variable = "percentile"
ens_param_pctl = 95

[_base._concentration._integr."_multipanel_pctl+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_percentile_{domain}.pdf"
plot_type = "multipanel"
multipanel_param = "ens_param_pctl"
ens_variable = "percentile"
ens_param_pctl = [5, 50, 75, 95]

[_base._tot_deposition."_multipanel_pctl+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_percentile_{domain}.pdf"
plot_type = "multipanel"
multipanel_param = "ens_param_pctl"
ens_variable = "percentile"
ens_param_pctl = [5, 50, 75, 95]

[_base._concentration._cloud]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_timing_{domain}.pdf"
ens_param_mem_min = 2
ens_param_thr = 0.0
time = 0
[_base._concentration._cloud."_arrival+"]
ens_variable = "cloud_arrival_time"
[_base._concentration._cloud."_departure+"]
ens_variable = "cloud_departure_time"

[_base._concentration._integr."_min+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "minimum"
[_base._tot_deposition."_min+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "minimum"
[_base._affected_area."_min+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "minimum"
[_base._concentration._integr."_max+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "maximum"
[_base._tot_deposition."_max+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "maximum"
[_base._affected_area."_max+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "maximum"
[_base._concentration._integr."_mean+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "mean"
[_base._tot_deposition."_mean+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "mean"
# [_base._affected_area."_mean+"]
# outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
# ens_variable = "mean"
[_base._concentration._integr."_median+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "median"
[_base._tot_deposition."_median+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "median"
[_base._affected_area."_median+"]
outfile = "{release_start}_{release_site}_FLEXPART-{model}_cloud_statistics_{domain}.pdf"
ens_variable = "median"

["**".full]
domain = "full"
["**".ch]
domain = "ch"
Loading