Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
0b52c83
Recipe for histograms of masked Nimrod accumulations #2113
BernardClaxton Jun 4, 2026
391c433
Loader for Nimrod masked histograms #2113
BernardClaxton Jun 4, 2026
8a091ec
Function to produce Nimrod masked cubes #2113
BernardClaxton Jun 4, 2026
a1fc575
Recipe to produce mean time series of masked Nimrod accumulations #2113
BernardClaxton Jun 4, 2026
4cfbdfd
Loader for recipe to produce mean time series of masked Nimrod accumu…
BernardClaxton Jun 4, 2026
fa0f7cd
Nimrod weights 2-d plots to use gray for out of radar range domain #…
BernardClaxton Jun 4, 2026
d6d441b
jaml recipe for plotting masked model rainfall #2113
BernardClaxton Jun 18, 2026
93825e2
function radar_apply_mask in radar_filter.py #2113
BernardClaxton Jun 18, 2026
99cc537
radar_apply_mask now uses function apply_mask in filters.py #2113
BernardClaxton Jun 18, 2026
3268736
loaders for radar_mask_model.yaml #2113
BernardClaxton Jun 18, 2026
33a20f2
for 2-d surface plots replaced np.min, np.max, np.mean with np.nanmin…
BernardClaxton Jun 18, 2026
4b81b55
Grey out domain beyond radar range for rainfall masked spatial plots …
BernardClaxton Jun 19, 2026
493ddfa
When regridding model using nimrod wts field, set extrapolated values…
BernardClaxton Jul 20, 2026
79d9476
Radar operators in radar_filter.py #2113
BernardClaxton Aug 27, 2026
da7576d
Radar loaders #2113
BernardClaxton Aug 27, 2026
2d973f2
Radar recipe for domain mean histogram #2113
BernardClaxton Aug 27, 2026
a9e0d13
Radar recipe for histogram sequences #2113
BernardClaxton Aug 27, 2026
6073ff9
Radar loaders #2113
BernardClaxton Aug 27, 2026
7acc815
recipe histogram mean #2113
BernardClaxton Aug 27, 2026
36dd595
recipe 2-d radar plots #2113
BernardClaxton Aug 27, 2026
ae5ba6c
recipe radar_dev3 plots #2113
BernardClaxton Aug 27, 2026
596cace
recipe radar_masked_mean_time_series #2113
BernardClaxton Aug 27, 2026
b4390e1
recipe radar_masked_time_series #2113
BernardClaxton Aug 27, 2026
0b096ae
radar rose-meta.conf #2113
BernardClaxton Aug 27, 2026
5323901
modified collapse operator #2113
BernardClaxton Sep 3, 2026
282e416
modified radar_filter operator #2113
BernardClaxton Sep 3, 2026
d2aff8b
Added NIMROD_RADAR_OBS guards in radar loaders #2113
BernardClaxton Sep 9, 2026
2c7731d
fixed a radar recipe to produce mean histograms over a case study #2113
BernardClaxton Sep 9, 2026
5c0407f
wire SEQUENCE into radar histogram recipe.
Sylviabohnenstengel Sep 9, 2026
39dcac2
remove time mean of spatial fields for calculation of radar histograms.
Sylviabohnenstengel Sep 9, 2026
2d3e72d
update collapse operator #2113
BernardClaxton Sep 10, 2026
0901dd3
update radar_filter operator #2113
BernardClaxton Sep 10, 2026
9870de7
Added +1 hour offset to the start time of the radar files to fetch #…
BernardClaxton Sep 10, 2026
20f101d
New button in Rose GUI to select radar histogram outputs #2113
BernardClaxton Sep 10, 2026
99478b6
New recipe and loaders for Nimrod radar histograms #2113
BernardClaxton Sep 10, 2026
6544638
Tidied radar histogram recipe #2113
BernardClaxton Sep 10, 2026
bac16f5
New radar Rose GUI button for PROCESS_RADAR_2D #2113
BernardClaxton Sep 10, 2026
5a6e228
Tidied recipe to produce 2D surface plots of radar rainfall and weigh…
BernardClaxton Sep 10, 2026
5e0aa20
Loader to produce 2D surface plots of radar rainfall and weights #2113
BernardClaxton Sep 10, 2026
fcafe65
Merge branch 'main' into 2113_nimrod_regrid
BernardClaxton Sep 10, 2026
b327135
New recipe for common domain 2D radar plots #2113
BernardClaxton Sep 10, 2026
2327952
Recipe for 2D plots of model rainfall over domain common to both mode…
BernardClaxton Sep 11, 2026
ae2380d
Recipe for 2D plots of radar rainfall over domain common to both mode…
BernardClaxton Sep 11, 2026
24701dc
fetch_nimrod.py now retrieves the correct number of radar files #2113
BernardClaxton Sep 14, 2026
e388bcc
Put strict_title into ploy.py to turn off prepending plot tiltes with…
BernardClaxton Sep 14, 2026
141c246
Put strict_title into a recipe to turn off prepending plot title with…
BernardClaxton Sep 14, 2026
145aab7
Put strict_title into a recipe to turn off prepending plot title with…
BernardClaxton Sep 14, 2026
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
22 changes: 15 additions & 7 deletions src/CSET/cset_workflow/app/fetch_nimrod/bin/fetch_nimrod.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import json
import logging
import os
from datetime import datetime
from datetime import datetime, timedelta
from pathlib import Path

import iris
Expand Down Expand Up @@ -101,10 +101,6 @@ def retrieve_nimrod():
with open(nimrod_met_office, "rt") as fp: # pragma: no cover
nimrod_dict = json.load(fp)

# Form the Nimrod start and end dates.
date_start = v["data_time"]
date_end = v["data_time"] + v["forecast_length"]

# Loop over the required Nimrod fields, i.e. 1km 2km or xkm rainfall
# accumulation composites or the 5 minute rainfall rate composites.
for nimrod_field in v["field"]:
Expand All @@ -124,9 +120,21 @@ def retrieve_nimrod():
os.makedirs(nimrod_dir_wei, exist_ok=True)
logger.info("Cylc-run Nimrod weights directory: %s", nimrod_dir_wei)

# Put +1 hour offset for accumulation radar files as
# the time stamps for these files mark the end of the
# accumulation period rather than the beginning.
radar_offset = timedelta(hours=0.0)
if nimrod_field == "Nimrod_comp_xkm":
radar_offset = timedelta(hours=1.0)
if nimrod_field == "Nimrod_comp_1km":
radar_offset = timedelta(hours=1.0)
if nimrod_field == "Nimrod_comp_2km":
radar_offset = timedelta(hours=1.0)
date_start_offset = v["data_time"] + radar_offset

# Process Nimrod data between the start and end dates.
date_use = date_start
while date_use <= date_end:
date_use = date_start_offset
while date_use < date_start_offset + v["forecast_length"]:
# Load the Nimrod data into an Iris cube.
nimrod_obs_exist = "False"
nimrod_obs = (
Expand Down
29 changes: 27 additions & 2 deletions src/CSET/cset_workflow/meta/observations/rose-meta.conf
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ title=Radar observations

[template variables=NIMROD_COMP_XKM]
ns=Observations/Radar
title=UK Nimrod radar accumulated rainfall
description=Default UK Nimrod rainfall accumulation
title=UK Nimrod radar accumulated rainfall 5km gridding
description=5km gridded UK Nimrod rainfall accumulation
help=Switch to select default gridded UK Nimrod rainfall accumulation.
compulsory=true
type=python_boolean
Expand Down Expand Up @@ -269,6 +269,31 @@ compulsory=true
type=python_boolean
sort-key=nimrod-radar-7

[template variables=PROCESS_RADAR_2D]
ns=Observations/Radar
title=Produce Nimrod 2D surface plots
description=Produce 2D surface plots of radar observations.
help=Switch to produce 2D surface plots utilising Nimrod radar observations.
Plots are produced of the 2D surface rainfall for each of the selected Nimrod sources.
Plots of the associated Nimrod weights fields are also produced.
compulsory=true
type=python_boolean
sort-key=nimrod-radar-8

[template variables=PROCESS_RADAR_HISTOGRAMS]
ns=Observations/Radar
title=Produce Nimrod radar histograms
description=Produce histograms incorporating radar observations.
help=Switch to produce histograms utilising Nimrod radar observations.
The histograms will combine both model rainfall and radar observations.
The model rainfall variable is selected in in the Rose tab Diagnostics/Surface (2D) fields.
compulsory=true
type=python_boolean
sort-key=nimrod-radar-9




################################################################
# Cardington UK Research Observations
[ns=Observations/Cardington]
Expand Down
Loading
Loading