From 7a418aa9c7dff6134dade1625c0041e5370b2e32 Mon Sep 17 00:00:00 2001 From: Travis Elless <113720457+TravisElless-NOAA@users.noreply.github.com> Date: Wed, 26 Feb 2025 09:52:56 -0500 Subject: [PATCH] Update for missing snow files (#76) This PR adds missing file actions to the snow observation yamls and also makes an additional change to the obs staging yaml copy statement. These modifications are one step to ensuring the snow DA does not cause an operational failure if snow observation files are missing. References [GDASApp Issue 1462 ](https://github.com/NOAA-EMC/GDASApp/issues/1462) --- algorithm/snow/snow_obs_staging.yaml.j2 | 2 +- observations/snow/adpsfc_snow.yaml.j2 | 1 + observations/snow/ghcn_snow.yaml.j2 | 1 + observations/snow/sfcsno.yaml.j2 | 1 + observations/snow/snocvr_snow.yaml.j2 | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/algorithm/snow/snow_obs_staging.yaml.j2 b/algorithm/snow/snow_obs_staging.yaml.j2 index a8d3dc8..778cfd1 100644 --- a/algorithm/snow/snow_obs_staging.yaml.j2 +++ b/algorithm/snow/snow_obs_staging.yaml.j2 @@ -1,6 +1,6 @@ mkdir: - '{{snow_obsdatain_path}}' -copy: +copy_opt: {% for observation_from_jcb in observations %} {% if use_observer(observation_from_jcb) %} {% if not observation_from_jcb == 'ims_snow' %} diff --git a/observations/snow/adpsfc_snow.yaml.j2 b/observations/snow/adpsfc_snow.yaml.j2 index f0fe2fd..6298cc0 100644 --- a/observations/snow/adpsfc_snow.yaml.j2 +++ b/observations/snow/adpsfc_snow.yaml.j2 @@ -8,6 +8,7 @@ engine: type: H5File obsfile: "{{snow_obsdatain_path}}/{{snow_obsdatain_prefix}}{{observation_from_jcb}}{{snow_obsdatain_suffix}}" + missing file action: warn obsdataout: engine: type: H5File diff --git a/observations/snow/ghcn_snow.yaml.j2 b/observations/snow/ghcn_snow.yaml.j2 index ea7a956..b825e79 100644 --- a/observations/snow/ghcn_snow.yaml.j2 +++ b/observations/snow/ghcn_snow.yaml.j2 @@ -8,6 +8,7 @@ engine: type: H5File obsfile: "{{snow_obsdatain_path}}/{{snow_obsdatain_prefix}}{{observation_from_jcb}}.nc" + missing file action: warn obsdataout: engine: type: H5File diff --git a/observations/snow/sfcsno.yaml.j2 b/observations/snow/sfcsno.yaml.j2 index ce44417..31c8785 100644 --- a/observations/snow/sfcsno.yaml.j2 +++ b/observations/snow/sfcsno.yaml.j2 @@ -9,6 +9,7 @@ type: bufr obsfile: "{{snow_obsdatain_path}}/{{snow_obsdatain_prefix}}sfcsno.tm00.bufr_d" mapping file: "{{snow_obsdatain_path}}/bufr_sfcsno_mapping.yaml" + missing file action: warn obsdataout: engine: type: H5File diff --git a/observations/snow/snocvr_snow.yaml.j2 b/observations/snow/snocvr_snow.yaml.j2 index fe73587..c38da08 100644 --- a/observations/snow/snocvr_snow.yaml.j2 +++ b/observations/snow/snocvr_snow.yaml.j2 @@ -8,6 +8,7 @@ engine: type: H5File obsfile: "{{snow_obsdatain_path}}/{{snow_obsdatain_prefix}}{{observation_from_jcb}}.nc4" + missing file action: warn obsdataout: engine: type: H5File