From c42d550de0727b816a0c8b14261df3a14bfe8cd9 Mon Sep 17 00:00:00 2001 From: treerink Date: Mon, 5 Feb 2024 13:55:59 +0100 Subject: [PATCH] Add the co2box variables to the request and include them in the optimism genecec flow #792 #785. --- .../optimesm-request-EC-EARTH-CC-varlist.json | 14 +++++++++++++- ece2cmor3/scripts/add-variables-for-co2box.sh | 3 ++- .../scripts/genecec-for-individual-experiments.sh | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ece2cmor3/resources/miscellaneous-data-requests/optimesm-request/optimesm-request-EC-EARTH-CC-varlist.json b/ece2cmor3/resources/miscellaneous-data-requests/optimesm-request/optimesm-request-EC-EARTH-CC-varlist.json index 05a6759f..3ce7e181 100644 --- a/ece2cmor3/resources/miscellaneous-data-requests/optimesm-request/optimesm-request-EC-EARTH-CC-varlist.json +++ b/ece2cmor3/resources/miscellaneous-data-requests/optimesm-request/optimesm-request-EC-EARTH-CC-varlist.json @@ -492,5 +492,17 @@ "snmassacrossline" ] }, - "tm5": {} + "tm5": {}, + "co2box": { + "Amon": [ + "co2mass" + ], + "Emon": [ + "co2s" + ], + "day": [ + "co2s", + "co2mass" + ] + } } diff --git a/ece2cmor3/scripts/add-variables-for-co2box.sh b/ece2cmor3/scripts/add-variables-for-co2box.sh index 81463d15..df8755a3 100755 --- a/ece2cmor3/scripts/add-variables-for-co2box.sh +++ b/ece2cmor3/scripts/add-variables-for-co2box.sh @@ -73,7 +73,8 @@ if [ "$#" -eq 0 ]; then echo echo " $0 reports:" - echo " The adjusted file is: ${table_path}/${table_file_day}" + echo " The adjusted file is:" + echo " ${table_path}/${table_file_day}" echo " Which is part of a nested repository, therefore to view the diff, run:" echo " cd ${table_path}; git diff; cd -" echo diff --git a/ece2cmor3/scripts/genecec-for-individual-experiments.sh b/ece2cmor3/scripts/genecec-for-individual-experiments.sh index 4ee07a72..e46167b1 100755 --- a/ece2cmor3/scripts/genecec-for-individual-experiments.sh +++ b/ece2cmor3/scripts/genecec-for-individual-experiments.sh @@ -79,6 +79,7 @@ if [ "$#" -eq 5 ]; then # optimesm only: if [ ${data_request_file##*/} = 'optimesm-request-EC-EARTH-CC-varlist.json' ]; then ./add-lpjg-cc-diagnostics.sh + ./add-variables-for-co2box.sh fi rm -rf ${output_dir}