Changeset 4702 for BOL/Multi_atlas


Ignore:
Timestamp:
Sep 20, 2023, 3:05:36 PM (15 months ago)
Author:
musat
Message:

Mise a jour script principal pour spirit
Modifs appels axes 2 et 4.
IonelaMusat?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/Utils/multi.sh

    r4439 r4702  
     1
    12#set -vx
    23
    34source ~/env_Multi_atlas.sh
     5module purge
    46
    57local=`pwd -P`
     
    1517zon=1
    1618html=1
    17 atlas=1
     19atlas=0
    1820#newatlas=0
    1921atlas_cesmep=0
     
    8991
    9092echo qsub is $qsub
    91 #exit
    9293
    9394echo DODSDIR : $DODSDIR
    94 MAIN_SE=$DODSDIR/$login/lmdz/SE
    95 TS_DA=$DODSDIR/$login/lmdz/TS_DA
    96 TS_MO=$DODSDIR/$login/lmdz/TS_MO
    97 MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu
    9895
    9996if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi
     
    124121for year in `grep -w "^$s" $DEF_FILE | awk ' { print $2 } '` ; do
    125122file=${MAIN_SE}/ORIG/${s}_SE_${year}_1M_histmth.nc
    126 ###file=${MAIN_SE}/ORIG/${ss}_SE_${year}_1M_histmth.nc
    127123
    128124echo $file $year
     
    134130  echo NO need to ln -s; the *1M_histmth.nc does not exist anymore
    135131 else
     132  \rm year.txt
    136133  echo $year>>year.txt
    137134  sed -i -e 's/_/ /' year.txt
    138135  year1=`less year.txt | awk '{print $1}'`
    139136  year2=`less year.txt | awk '{print $2}'`
    140   ln -s ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1230_1M_histmth.nc $file
     137  echo yr1=${year1} yr2=${year2}
     138  ls -l ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1230_1M_histmth.nc
     139  ls -l ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1231_1M_histmth.nc
     140  if [ -f ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1230_1M_histmth.nc ]; then
     141   ln -s ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1230_1M_histmth.nc $file
     142  elif [ -f ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1231_1M_histmth.nc ]; then
     143   ln -s ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1231_1M_histmth.nc $file
     144  fi
    141145 fi
    142146fi
    143147
    144 \rm ${MAIN_SE}/ORIG/UQLMDZ6AW1000_SE_1979_1988_1M_histmth.nc
     148#\rm ${MAIN_SE}/ORIG/UQLMDZ6AW1000_SE_1979_1988_1M_histmth.nc
    145149done
    146150done
     
    178182fi
    179183done
    180 #exit
     184
    181185listruns=""
    182186listrunss=""
     
    186190simdir=`grep -w "^$s "  $runstxt | awk ' { print $2 } '`
    187191echo $simdir
    188 ( cd $MAIN_SE/ORIG ; ln -sf $simdir/ATM/Analyse/SE/*mth*nc . ) > /dev/null 2>&1
     192cd $MAIN_SE/ORIG ;
    189193echo $simdir
    190194ss=`basename $simdir `
     
    195199done
    196200done
    197 #echo listruns = $listruns
    198 #echo listrunss= $listrunss
    199 #echo listrune= $listrune
    200 #ls -lrt $MAIN_SE/ORIG # Eviter de laisser des ls qui rendent la sortire illisible FH
    201 #listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do listsimss="$listsimss $ss" ; done
    202201
    203202ns=0
     
    413412   echo metrics.sh, log in ${LOGD}/METRICS$$
    414413   cd $local/METRICS
    415    #./metrics.sh -runsfile $runstxt $comp
    416414   echo ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1
    417415   ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1
     
    454452if [ $river = 1 ]; then
    455453   cd ~/users/idelkadi/AXE1/River
    456    ./make_diagnoRiver.sh $comp
     454   ./make_diagnoRiver.sh $comp >> ${LOGD}/out_river
    457455fi 
    458456
     
    461459echo 8.2/ Rainfall variability / LMA analysis of the MJO : $lma
    462460echo '#####################################################################'
    463    #IM150722 cd $local
    464    #IM120722 ./make_lma.sh $comp
    465    cd ~/users/musat/d_AXE2_LMA/
    466    ./make_LMA.sh $comp >  ${LOGD}/LMA$$ 2>&1
     461   cd ${local}/d_AXE2_LMA/
     462   bash ./make_LMA.sh $comp >  ${LOGD}/LMA$$ 2>&1
     463   echo ./make_LMA.sh $comp >  ${LOGD}/LMA$$ 2>&1
    467464   cd ${local}
    468465fi
     
    481478echo 8.4/ Rainfall variability / Marine Bonazzola : $trmm
    482479echo '#####################################################################'
    483    cd ~/users/musat/atlas/d_AXE2
    484    ./Axe2_Marine.sh $comp
     480   cd ${local}/d_AXE2
     481   bash ./Axe2_Marine.sh $comp >  ${LOGD}/axe2_Marine_$$ 2>&1
     482   echo ./Axe2_Marine.sh $comp '-->'  ${LOGD}/axe2_Marine_$$ 2>&1
    485483   cd $local
    486484fi
     
    499497echo '#####################################################################'
    500498  cd $local
    501    ./make_axe4.sh $comp
     499   bash ./make_axe4.sh $comp >  ${LOGD}/axe4_$$ 2>&1
     500   echo  make_axe4.sh $comp '-->' ${LOGD}/axe4_$$
    502501fi
    503502
     
    574573
    575574   echo Multi atlas, log in ${LOGD}/multiatlas$$
    576 #  for proj in GLOB SH NH ; do
    577 #  for proj in ATLTN GLOB SH NH ; do
    578575   for proj in GLOB SH NH ; do
    579576   for bias in BIAS MAPS ; do
     
    583580   done
    584581   done
    585 #exit
    586 #   cd $COMP_D
    587 #   ln -sf BIASYEAR.html  $comp.html
    588 #   ln -sf ACCUEIL.html  $comp.html
    589582cd $local
    590583./webpage_multi.sh $comp
Note: See TracChangeset for help on using the changeset viewer.