Skip to content

Commit

Permalink
Add the NEWCOMPONENT instruction keyword for the metadata part.
Browse files Browse the repository at this point in the history
  • Loading branch information
treerink committed Feb 15, 2024
1 parent a2003ab commit e6ba287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ece2cmor3/scripts/modify-metadata-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e6ba287

Please sign in to comment.