-
Notifications
You must be signed in to change notification settings - Fork 7
Ingestion of synoptic observations #1579
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
Open
JMEdwardsXtr
wants to merge
8
commits into
main
Choose a base branch
from
CSET_Obs_JME_310725
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9d4b574
Replicating changes in a new branch.
JMEdwardsXtr b6cb7e4
Committing tested version.
JMEdwardsXtr c820209
Adding a doc-string.
JMEdwardsXtr 18f8a0f
Replicating changes in a new branch.
JMEdwardsXtr 017e5e5
Committing tested version.
JMEdwardsXtr f5cb2ec
Adding a doc-string.
JMEdwardsXtr 666a914
Changes following the review.
JMEdwardsXtr eccb808
Merge branch 'CSET_Obs_JME_310725' of github.com:MetOffice/CSET into …
JMEdwardsXtr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
site/ | ||
opt/ | ||
demo_pointstat/ | ||
*metdb* | ||
restricted* | ||
|
||
# User workflow configuration. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[command] | ||
default=echo "Please set ROSE_APP_COMMAND_KEY to your database."; false | ||
metdb=app_env_wrapper fetch-obs-metdb.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/CSET/cset_workflow/includes/spatial_surface_model_obs_diference.cylc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% if SURFACE_SYNOP_OBS and SURFACE_SYNOP_DIFFS %} | ||
{% for model in models %} | ||
{% for obs_field in (SURFACE_SYNOP_FIELDS | list) %} | ||
[runtime] | ||
[[obs_model_difference_scatterplot_m{{model["id"]}}_{{obs_field}}]] | ||
inherit = PROCESS | ||
execution time limit = PT6H | ||
JMEdwardsXtr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_model_obs_difference_scatterplot.yaml" | ||
CSET_ADDOPTS = """ | ||
--OBSVARNAME={{obs_field}} | ||
--VARNAME={{(SURFACE_SYNOP_MODEL_FIELDS | list)[loop.index0]}} | ||
--BASE_MODEL='{{model["id"]}}' | ||
--OBSERVATIONS='OBS' | ||
--MODEL_NAME='{{model["name"]}}' | ||
--DIFFERENCE=True | ||
--SUBAREA_TYPE={{SUBAREA_TYPE | default("")}} | ||
--SUBAREA_EXTENT={{SUBAREA_TYPE | default("")}} | ||
--PLOTTING_PROJECTION={{PLOTTING_PROJECTION | default("")}} | ||
""" | ||
MODEL_IDENTIFIERS = 'OBS {{model["id"]}}' | ||
|
||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |
18 changes: 18 additions & 0 deletions
18
src/CSET/cset_workflow/includes/spatial_surface_obs_field.cylc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% if SURFACE_SYNOP_OBS %} | ||
{% for obs_field in SURFACE_SYNOP_FIELDS %} | ||
[runtime] | ||
[[generic_obs_scatterplot_{{obs_field}}]] | ||
inherit = PROCESS | ||
execution time limit = PT1H | ||
[[[environment]]] | ||
CSET_RECIPE_NAME = "generic_obs_scatterplot.yaml" | ||
CSET_ADDOPTS = """ | ||
--OBSVARNAME={{obs_field}} | ||
--SUBAREA_TYPE={{SUBAREA_TYPE | default("")}} | ||
--SUBAREA_EXTENT={{SUBAREA_TYPE | default("")}} | ||
--PLOTTING_PROJECTION={{PLOTTING_PROJECTION | default("")}} | ||
""" | ||
MODEL_IDENTIFIERS = "OBS" | ||
|
||
{% endfor %} | ||
{% endif %} |
105 changes: 105 additions & 0 deletions
105
src/CSET/cset_workflow/meta/observations/rose-meta.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
################################################################################ | ||
# Observations | ||
################################################################################ | ||
|
||
[Observations] | ||
ns=Observations | ||
sort-key=sec-d | ||
title=Observational Comparisons | ||
|
||
################################################################################ | ||
# Spatial (2D map) fields | ||
################################################################################ | ||
|
||
[Observations/Types] | ||
ns=Observations/Types | ||
sort-key=sec-d1 | ||
title=Types of observations | ||
|
||
# Surface synoptic fields. | ||
[template variables=SURFACE_SYNOP_OBS] | ||
ns=Observations/Types | ||
description=Compare with surface synoptic observations | ||
type=python_boolean | ||
compulsory=true | ||
sort-key=0synop1a | ||
trigger=template variables=SURFACE_SYNOP_FIELDS: True; | ||
template variables=USE_WMO_STATION_NUMBERS: True; | ||
template variables=SURFACE_SYNOP_INTERVAL: True; | ||
template variables=SURFACE_SYNOP_OFFSET: True; | ||
|
||
################################################################ | ||
|
||
[Observations/Types/Synoptic] | ||
ns=Observations/Types/Synoptic | ||
sort-key=sec-d2 | ||
title=Synoptic observations | ||
|
||
[template variables=SURFACE_SYNOP_FIELDS] | ||
ns=Observations/Types/Synoptic | ||
title=Surface synoptic observations | ||
description=Synoptic observations | ||
help=Name of field in the style of the MetDB. | ||
compulsory=true | ||
type=python_list | ||
sort-key=0synop1b | ||
|
||
[template variables=SURFACE_SYNOP_DIFFS] | ||
ns=Observations/Types/Synoptic | ||
description=Calculate the corresponding differences. | ||
type=python_boolean | ||
compulsory=true | ||
sort-key=0synop1c | ||
trigger=template variables=SURFACE_SYNOP_MODEL_FIELDS: True; | ||
|
||
[template variables=SURFACE_SYNOP_MODEL_FIELDS] | ||
ns=Observations/Types/Synoptic | ||
title=Corresponding model variables | ||
description=Synoptic observations | ||
help=Name of field in the model: the order must match that of the synoptic observations | ||
compulsory=true | ||
type=python_list | ||
sort-key=0synop1d | ||
|
||
[template variables=USE_WMO_STATION_NUMBERS] | ||
ns=Observations/Types/Synoptic | ||
description=Use WMO numbers | ||
help=Select to set stations by WMO station or block number. | ||
compulsory=true | ||
type=python_boolean | ||
sort-key=0synop1e | ||
trigger=template variables=WMO_BLOCK_STTN_NMBRS: True; | ||
|
||
[template variables=WMO_BLOCK_STTN_NMBRS] | ||
ns=Observations/Types/Synoptic | ||
title=WMO Block or station numbers. | ||
description=WMO numbers | ||
help=WMO block numbers (2 digits) or station numbers (5 digits). | ||
compulsory=true | ||
type=python_list | ||
sort-key=0synop1f | ||
|
||
[template variables=SURFACE_SYNOP_INTERVAL] | ||
ns=Observations/Types/Synoptic | ||
title=Interval between synoptic observations | ||
description=Synoptic observations | ||
help=The time interval between rerievals of synoptic observations. | ||
compulsory=true | ||
type=quoted | ||
sort-key=0synop1g | ||
|
||
[template variables=SURFACE_SYNOP_OFFSET] | ||
ns=Observations/Types/Synoptic | ||
title=Offset for synoptic observations | ||
description=Offset for observations | ||
help=The offset of the first retrieved observations relative to the initial time. | ||
compulsory=true | ||
type=quoted | ||
sort-key=0synop1h | ||
|
||
################################################################ | ||
|
||
[Observations/Types/Placeholder] | ||
ns=Observations/Types/Placeholder | ||
sort-key=sec-e2 | ||
title=Observations from an undefined source. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.