Commit a6818bfb authored by Pierre-Antoine Bretonnière's avatar Pierre-Antoine Bretonnière
Browse files

Merge branch 'debug_a01w' into 'master'

Add Ec3.0_O25L75 as config where to rename icevar

solves issue es/auto-ecearth3#32

See merge request !12
parents 678526fd 9c2b3abd
......@@ -22,6 +22,7 @@
# setminmax #
# concat #
# gather_memb #
# vertmeanvar #
# #
# Those functions would never have seen the day without Hui Du, #
# usually referred to as Super-Hui. #
......@@ -166,12 +167,12 @@ function concat_startdate {
typeset var root
typeset var lstfiles
for root in ${listroots[@]} ; do
if [[ `ls *${root}*` != '' ]] && [[ `ls *${root}*` != ${root}_1m.nc ]] ; then
if [[ "$8" == "MMO" ]] ; then
lstfiles=`ls *${root}* | grep -v "${root}_$2_$1_fc" | grep -v "${freqexcl1}" | grep -v "${freqexcl2}" | grep -v "km" `
else
lstfiles=`ls ${root}* | grep -v "${root}_$2_$1_fc" | grep -v "${freqexcl1}" | grep -v "${freqexcl2}" | grep -v "km" `
fi
if [[ ! -z ${lstfiles} ]] ; then
file1=`echo "${lstfiles}" | tail -1`
cdo_version=`cdo -V &> ff ; grep Climate ff | cut -d \ -f 5`
......@@ -828,10 +829,8 @@ fi
function siasiesiv {
cp ${CON_FILES}/ice_template.nc toto_N.nc
cp ${CON_FILES}/ice_template.nc toto_S.nc
ls
pwd
case ${NEMOVERSION} in
'Ec3.0_O1L46'|'Ec3.0_O25L46') for var in `cdo showvar $1 | head -1`
'Ec3.0_O1L46'|'Ec3.0_O25L46'|'Ec3.0_O25L75') for var in `cdo showvar $1 | head -1`
do
[[ $var = "ice_pres" || $var = "iiceconc" ]] && ncrename -v $var,ileadfra $1
done;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment