Changeset 4330 for BOL/Multi_atlas/Utils


Ignore:
Timestamp:
Nov 9, 2022, 3:27:12 PM (2 years ago)
Author:
musat
Message:

Ajout environnement et corrections

  • champ eva(poration) moyennes zonales
  • pour les appels a des fonctions climaf via mcdo (timavg, sqrt)

IonelaMusat?

Location:
BOL/Multi_atlas/Utils
Files:
2 edited

Legend:

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

    r4317 r4330  
    33local=`pwd -P`
    44
    5 ../env_ciclad.sh
     5source ../env.sh
    66
    77module list
    8 which python
     8python=`which python`
     9echo PYTHON IS $python
     10
    911ulimit -s unlimited
    1012ATLAS_DIR=${DODSDIR}/${login}/lmdz/atlas/Atlas$$ ; mkdir -p $ATLAS_DIR
     
    1214dirpng=${DODSDIR}/${login}/lmdz/VLR
    1315
     16if [ 1 == 0 ]; then
    1417export PYTHONPATH=$PYTHONPATH:/home/fabric/users/denvil/climaf
    1518export PATH=$PATH:/home/fabric/users/denvil/climaf/bin
    16 
    17 \rm -rf $DODSDIR/$login/climafCache$$
    18 mkdir -p $DODSDIR/$login/climafCache$$
    19 export CLIMAF_CACHE=$DODSDIR/$login/climafCache$$
    20 echo CLIMAF_CACHE $DODSDIR/$login/climafCache$$
     19fi
     20
     21#myCC=$DODSDIR/$login/IMclimafCache
     22#if [ 1 == 0 ]; then
     23myCC=/scratchu/${login}/climafCache041122run
     24#\rm -rf ${myCC}
     25mkdir -p ${myCC}
     26export CLIMAF_CACHE=${myCC}
     27echo CLIMAF_CACHE ${CLIMAF_CACHE}
     28mkdir -p ${CLIMAF_CACHE}/remote_data
     29export CLIMAF_REMOTE_CACHE=${CLIMAF_CACHE}/remote_data
     30#fi
     31#exit
     32#\rm -rf $DODSDIR/$login/climafCache$$
     33#mkdir -p $DODSDIR/$login/climafCache$$
     34#export CLIMAF_CACHE=$DODSDIR/$login/climafCache$$
     35#echo CLIMAF_CACHE $DODSDIR/$login/climafCache$$
    2136###########################################################################
    2237vars=""
     
    131146   mkdir -p ${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj}
    132147
     148   refok=${dirpng}/${seas}/${ref}/MAP/${proj}/${var}.pdf
    133149   mapok=${dirpng}/${seas}/${sim}/MAP/${proj}/${var}.pdf
    134150   dmapok=${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj}/${var}.pdf
     
    140156#   ~/LMDZ/check/make_check_var3D_SE.sh $dirpng $seas $sim $ref $var > out_check_var3D_SE.log
    141157
     158if [ ! -f ${refok} ] || [ ! -f ${mapok} ] || [ ! -f ${dmapok} ]; then
     159
     160 echo Fabrication des cartes $var pour $ref $sim $sim-$ref
     161
    142162 if [ "$var" == "ua" ] || [ "$var" == "va" ] || [ "$var" == "ta" ] || [ "$var" == "hur" ] || [ "$var" == "hus" ]; then
    143     echo python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
    144     python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     163    echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     164    $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     165    if [ ! -f ${mapok} ]; then
     166     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     167     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     168     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     169     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     170    elif [ ! -f ${refok} ]; then
     171     echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     172     $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     173     echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     174     $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     175    elif [ ! -f ${dmapok} ]; then
     176     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     177     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     178     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     179     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     180    fi
    145181 else
    146     echo python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax}
    147     python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax}
     182    echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax}
     183    $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax}
     184    if [ ! -f ${mapok} ]; then
     185     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     186     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     187     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     188     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     189    elif [ ! -f ${refok} ]; then
     190     echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     191     $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     192     echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     193     $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng}
     194    elif [ ! -f ${dmapok} ]; then
     195     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     196     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     197     echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     198     $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng}
     199    fi
    148200 fi
     201#
     202else
     203 echo Les images $refok
     204 echo            $mapok et
     205 echo            $dmapok
     206 echo existent deja
     207fi
    149208#
    150209   echo Creation graphes png
     
    167226\rm -f $OUT_D/$keys_strg.ENCOURS
    168227
    169 \rm -rf $DODSDIR/$login/climafCache$$
     228#IM041122 \rm -rf $DODSDIR/$login/climafCache$$
  • BOL/Multi_atlas/Utils/multi.sh

    r4317 r4330  
    11#set -vx
    22
    3 ./env_ciclad.sh
     3source ./env.sh
    44
    55local=`pwd -P`
     
    8888echo runstxt= $runstxt
    8989
     90echo qsub is $qsub
     91#exit
     92
    9093echo DODSDIR : $DODSDIR
    9194MAIN_SE=$DODSDIR/$login/lmdz/SE
     
    312315      echo Atlas $atlas a creer
    313316      if [ $qsub = 0 ] ; then
    314          ${local}/atlas/atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin >> $outfile
     317         echo bash ${local}/atlas/atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin
     318         bash ${local}/atlas/atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin >> $outfile
     319         if [ "$ref" != "OBS" ]; then
     320            echo bash ${local}/atlas/atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin
     321            bash ${local}/atlas/atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin >> $outfile
     322         fi
    315323      else
    316324         echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin atlas.sh >> ${LOGD}/ATLAS$$ 2>&1
     
    357365      years=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $2 } '`
    358366      run=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $1 } '`
     367      echo ./make_MOY.sh "$years" YEAR "$run" GLOB
    359368      ./make_MOY.sh "$years" YEAR "$run" GLOB      >> ${LOGD}/MOY$$ 2>&1
    360369      ./make_MOY.sh "$years" YEAR "$run" ZON       >> ${LOGD}/MOY$$ 2>&1
     
    375384   ./mk_clouds_NOcalipso.sh MAM ZON        >> ${LOGD}/calipso$$ 2>&1
    376385   ./mk_clouds_NOcalipso.sh SON ZON        >> ${LOGD}/calipso$$ 2>&1
    377 
    378386   echo multi_ZONE.sh, log in ${LOGD}/Z$$
    379387   ./multi_ZONE.sh YEAR $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1
     
    402410   cd $local/METRICS
    403411   #./metrics.sh -runsfile $runstxt $comp
     412   echo ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1
    404413   ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1
    405414fi
     
    533542   cd ${local}
    534543   echo ./make_html_libigcm.sh --comp $comp --runstxt $runstxt
    535    ./make_html_libigcm.sh --comp $comp --runstxt $runstxt > ${LOGD}/html$$ 2>&1
     544   bash ./make_html_libigcm.sh --comp $comp --runstxt $runstxt > ${LOGD}/html$$ 2>&1
    536545   echo log in ${LOGD}/html$$
    537    ./html_entete.sh $comp ${dataref} >> ${LOGD}/html$$ 2>&1
     546   bash ./html_entete.sh $comp ${dataref} >> ${LOGD}/html$$ 2>&1
    538547   cd ${local}/html
    539    ./make_index_html.sh ${comp} ${dataref} >> ${LOGD}/html$$ 2>&1
    540    cd $local
    541    ./html_tuning.sh  $comp           >> ${LOGD}/html$$ 2>&1
    542    ./html_tuning_min.sh  $comp       >> ${LOGD}/html$$ 2>&1
    543    ./html_accueil.sh  $comp          >> ${LOGD}/html$$ 2>&1
    544    ./html_1D.sh  $comp               >> ${LOGD}/html$$ 2>&1
    545    ./html_lma.sh $comp               >> ${LOGD}/html_LMA$$ 2>&1
    546    ./html_pcmdi.sh $comp             >> ${LOGD}/html$$ 2>&1
    547    ./html_all.sh >| $MULTIDIR/all.html
     548   bash ./make_index_html.sh ${comp} ${dataref} >> ${LOGD}/html$$ 2>&1
     549   cd $local
     550   bash ./html_tuning.sh  $comp           >> ${LOGD}/html$$ 2>&1
     551   bash ./html_tuning_min.sh  $comp       >> ${LOGD}/html$$ 2>&1
     552   bash ./html_accueil.sh  $comp          >> ${LOGD}/html$$ 2>&1
     553   bash ./html_1D.sh  $comp               >> ${LOGD}/html$$ 2>&1
     554   bash ./html_lma.sh $comp               >> ${LOGD}/html_LMA$$ 2>&1
     555   bash ./html_pcmdi.sh $comp             >> ${LOGD}/html$$ 2>&1
     556   bash ./html_all.sh >| $MULTIDIR/all.html
    548557
    549558   # html pour les métriques
Note: See TracChangeset for help on using the changeset viewer.