diff --git a/ece2cmor3/scripts/modify-metadata-template.sh b/ece2cmor3/scripts/modify-metadata-template.sh index 7d867e6d..8aa9af5a 100755 --- a/ece2cmor3/scripts/modify-metadata-template.sh +++ b/ece2cmor3/scripts/modify-metadata-template.sh @@ -50,6 +50,7 @@ if [ "$#" -eq 3 ] || [ "$#" -eq 4 ]; then source_type_index=7 # The usual AOGCM case fi + # Add your NEWCOMPONENT to this if-blocks if you want to extend ece2cmor3 for more model components. if [ "${ececonf}" = 'EC-EARTH-AOGCM' ]; then declare -a model_components=('ifs' 'nemo' ); fi if [ "${ececonf}" = 'EC-EARTH-HR' ]; then declare -a model_components=('ifs' 'nemo' ); fi if [ "${ececonf}" = 'EC-EARTH-LR' ]; then declare -a model_components=('ifs' 'nemo' ); fi @@ -434,11 +435,13 @@ if [ "$#" -eq 3 ] || [ "$#" -eq 4 ]; then echo ' Running ' $0 ${mip} ${experiment} ${ececonf} ' for ' ${component} fi + # Add your NEWCOMPONENT to this check if you want to extend ece2cmor3 for more model components. if [ "${component}" != 'ifs' ] && [ "${component}" != 'nemo' ] && [ "${component}" != 'tm5' ] && [ "${component}" != 'lpjg' ]; then echo ' Error in ' $0 ': unkown ec-earth component: ' ${component} ' Valid options: ifs, nemo, tm5, or lpjg' exit fi + # Add your NEWCOMPONENT to this if-block if you want to extend ece2cmor3 for more model components. if [ "${component}" = 'ifs' ]; then grid_label='gr' res_index=1