Changeset 4330 for BOL/Multi_atlas


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
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/METRICS/metrics.sh

    r4306 r4330  
    11#!/bin/bash
    22
    3 login=`whoami`
    4 
    5 hostname=`hostname`
    6 if [ ${hostname:0:5} = cicla ] ; then
    7 DODSDIR=/thredds/ipsl
    8 fi
    9 if [ ${hostname:0:5} = camel ] ; then
    10 DODSDIR=/thredds/ipsl
    11 fi
    12 if [ ${hostname:0:5} = irene ] ; then
    13 DODSDIR=
    14 fi
    15 if [ ${hostname:0:5} = jean- ] ; then
    16 DODSDIR=
    17 fi
    18 
    19 set -vx
     3source ../env.sh
     4
     5#set -vx
    206force_create=1
    217
    228comp=$1
    23 local=`pwd`
     9local=`pwd -P`
    2410
    2511for season in YEAR DJF JJA ; do
    26 
    2712
    2813cd $local
     
    4732   COMP_D=$DODSDIR/$login/lmdz/MultiSimu/$comp
    4833   CMOR_DIR=$DODSDIR/$login/lmdz/VLR/$season
     34   echo COMP_D $COMP_D CMOR_DIR $CMOR_DIR
    4935elif [ "$comp" = "$1" ] ; then
    5036   # Installation locale
     
    6046# Liste des simulations de la comparasion $comp
    6147listsims="" ; listsimsy=""
     48
    6249DEF_FILE=$COMP_D/def.txt ; if [ ! -f "$DEF_FILE" ] ; then renseigner $DEF_FILE ; exit ; fi
    6350for s in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do listsimsy="$listsimsy $s" ; done
     
    7461  echo years $years
    7562
    76 
    7763  SIM_DIR=$CMOR_DIR/$GR/$sim$years
    78 ETOA_DIR=$SIM_DIR/METRICS
    79 
     64  ETOA_DIR=$SIM_DIR/METRICS
    8065
    8166   for mask in $masks ; do
     
    8671        if [ ! -d $SIM_DIR ] ; then echo $SIM_DIR absent ; exit ; fi
    8772        set +e ; \rm resu$sim ; set -e
    88         for var in rsut clhcalipso cllcalipso clmcalipso cltcalipso clt hfls eva hfss hurs huss pr ts tas sst psl rldscs rlds rlus rlutcs rlut rsdscs rsds rsdt rsuscs rsus rsutcs prw ; do
     73        for var in rsut clhcalipso cllcalipso clmcalipso cltcalipso clt hfls hfss hurs huss pr ts tas sst psl rldscs rlds rlus rlutcs rlut rsdscs rsds rsdt rsuscs rsus rsutcs prw ; do
    8974          if [ -f "$SIM_DIR/NC/$var.nc" ] ; then
    9075           if [ "$mask" = "glob" ] ; then
     
    118103      rlutcs=`grep '^rlutcs ' $xmgr | awk ' { print $2 } '`
    119104      hfls=`grep '^hfls ' $xmgr | awk ' { print $2 } '`
    120       eva=`grep '^eva ' $xmgr | awk ' { print $2 } '`
    121105      hfss=`grep '^hfss ' $xmgr | awk ' { print $2 } '`
    122106      rlds=`grep '^rlds ' $xmgr | awk ' { print $2 } '`
     
    128112      rsuscs=`grep '^rsuscs ' $xmgr | awk ' { print $2 } '`
    129113      rsdt=`grep '^rsdt ' $xmgr | awk ' { print $2 } '`
     114      echo $hfls | awk ' { print "eva"  , $1 * 0.03456 } ' >> $xmgr
    130115      echo $rsut $rsutcs | awk ' { print "crest" , $2 - $1 } ' >> $xmgr
    131116      echo $rlut $rlutcs | awk ' { print "crelt" , $2 - $1 } ' >> $xmgr
     
    160145# Tracers
    161146#########################################################################################
    162 
    163 
    164147
    165148cat <<eod>| descr
  • 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
  • BOL/Multi_atlas/atlas/atlas_none.py

    r4320 r4330  
    267267    # Bias mean value, and RMSD/RMSE
    268268    diff_avg=cvalue(space_average(diff))
    269     rmsd=math.sqrt(cvalue(space_average(ccdo(diff,operator='-b F64 sqr'))))
     269    rmsd=math.sqrt(cvalue(space_average(ccdo(diff,operator='b F64 sqr'))))
    270270    #
    271271    # Zonal means
  • BOL/Multi_atlas/atlas/lmdz_SE.py

    r4320 r4330  
    3434#seasons={ 'YEAR':"", 'DJF' : " selmon,1,2,12", 'JJA' : " selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" }
    3535#seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" }
    36 seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9", 'MAM' : "-timavg -selmon,3,4,5", 'SON' : "-timavg -selmon,9,10,11" }
     36seasons={ 'YEAR':"", 'DJF' : "timavg -selmon,1,2,12", 'JJA' : "timavg -selmon,6,7,8" , 'JJAS' : "timavg -selmon,6,7,8,9", 'MAM' : "timavg -selmon,3,4,5", 'SON' : "timavg -selmon,9,10,11" }
    3737
    3838
  • BOL/Multi_atlas/cmor.sh

    r3882 r4330  
    22
    33#set -vx
     4
     5source ./env.sh
    46
    57local=`pwd -P`
     
    1517# Defaults :
    1618####################################################################
    17 login=`whoami`
    18 
    19 hostname=`hostname`
    20 if [ ${hostname:0:5} = cicla ] ; then
    21 DODSDIR=/thredds/ipsl
    22 OBSDIR=$DODSDIR/fabric/lmdz/SE/CMOR/OBS
    23 fi
    24 if [ ${hostname:0:5} = camel ] ; then
    25 DODSDIR=/thredds/ipsl
    26 OBSDIR=$DODSDIR/fabric/lmdz/SE/CMOR/OBS
    27 fi
    28 if [ ${hostname:0:5} = irene ] ; then
    29 DODSDIR=
    30 OBSDIR=
    31 fi
    32 if [ ${hostname:0:5} = jean- ] ; then
    33 DODSDIR=
    34 OBSDIR=
    35 fi
    3619
    3720runstxt=${local}/runs.txt
  • BOL/Multi_atlas/install_multi_atlas.sh

    r4313 r4330  
    2727# Definitions en fonction de la machine
    2828# CICLAD
    29 if [ ${hostname:0:5} = cicla ] ; then
     29if [ ${hostname:0:5} = cicla ] || [ ${hostname:0:5} = spiri ]; then
    3030echo hostname-0-5 is ${hostname:0:5}
    3131# chemin vers le rep dods de base
     
    3838ROOT_OBS_DIR=$DODSDIR/fabric/lmdz/SE/CMOR/OBS
    3939
    40 \rm entete.sh
     40if [ -f entete.sh ]; then \rm entete.sh ; fi
    4141# Def entete des jobs
    4242cat <<eod >> entete.sh
  • BOL/Multi_atlas/make_MOY.sh

    r3881 r4330  
    11#!/bin/bash
    22
    3 set -v
    4 
    5 login=`whoami`
     3#set -vx
     4
     5source ./env.sh
     6
     7echo OBSDIR is defined in env.sh : $OBSDIR
     8
    69years=$1
    710SEAS=$2
     
    912zone=$4
    1013
    11 vars='psl'
    12 #vars='pr rstt rlut rtt crelt crest crett hfns hfls hfss tas sst hurs tauu tauv psl zg500 rsts rsut rsutcs rlutcs rsds rsdscs rsus rsuscs rlds rldscs rlus albs albt cress crels crets rts rah rahcs rahcre rlah rlahcs rlahcre rsah rsahcs rsahcre prw'
    13 vars='pr rstt rlut rtt crelt crest crett hfns hfls hfss tas sst hurs tauu tauv psl zg500 rsts rsut rsutcs rlutcs rsds rsdscs rsus rsuscs rlds rldscs rlus albs albt cress crels crets rts rah rahcs rahcre rlah rlahcs rlahcre rsah rsahcs rsahcre prw rttcs rsttcs cllcalipso clmcalipso clhcalipso cll clm clh'
    14 #vars='eva'
     14vars='pr rstt rlut rtt crelt crest crett hfns hfls eva hfss tas sst hurs tauu tauv psl zg500 rsts rsut rsutcs rlutcs rsds rsdscs rsus rsuscs rlds rldscs rlus albs albt cress crels crets rts rah rahcs rahcre rlah rlahcs rlahcre rsah rsahcs rsahcre prw rttcs rsttcs cllcalipso clmcalipso clhcalipso cll clm clh'
    1515
    1616if [ "$run" = "OBS" ]; then
     
    2020fi
    2121
    22 hostname=`hostname`
    23 if [ ${hostname:0:5} = cicla ] ; then
    24 DODSDIR=/thredds/ipsl
    25 OBSDIR=$DODSDIR/fabric/lmdz
    26 ferret="/opt/ferret-7.0.0/bin/ferret"
    27 fi
    28 if [ ${hostname:0:5} = camel ] ; then
    29 DODSDIR=/thredds/ipsl
    30 OBSDIR=$DODSDIR/$login/lmdz
    31 ferret="/opt/ferret-7.0.0/bin/ferret"
    32 fi
    33 if [ ${hostname:0:5} = irene ] ; then
    34 DODSDIR=
    35 OBSDIR=
    36 ferret=
    37 fi
    38 if [ ${hostname:0:5} = jean- ] ; then
    39 DODSDIR=
    40 OBSDIR=
    41 ferret=
    42 fi
     22echo ferret is $ferret
    4323
    4424force_create=1
     
    5333fi
    5434   
    55 
    5635
    5736if [ -d $WRK ] ; then WRK=$WRK$$ ; fi
     
    8766     case $var in
    8867           pr) lev='(-INF)(0.5)(1,4,1)(6,14,2)(INF)' ; levd='(-Inf)(-5)(-2,2,1)(-0.5)(-0.2)(0.2)(0.5)(5)(Inf)'; pal=rain_cmyk ;;
    89            prl) lev='(-INF)(0.5)(1,4,1)(6,14,2)(INF)' ; levd='(-Inf)(-5)(-2,2,1)(-0.5)(-0.2)(0.2)(0.5)(5)(Inf)'; pal=rain_cmyk ;;
    90            prc) lev='(-INF)(0.5)(1,4,1)(6,14,2)(INF)' ; levd='(-Inf)(-5)(-2,2,1)(-0.5)(-0.2)(0.2)(0.5)(5)(Inf)'; pal=rain_cmyk ;;
     68           prl) lev='(-INF)(0.5)(1,4,1)(6,14,2)(INF)' ; levd='(-Inf)(-5)(-2,2,1)(-0.5)(-0.2)(0.2)(0.5)(5)(Inf)'; pal=rain_cmyk ; varmod=prl ; varobs=86400.*pr ;;
     69           prc) lev='(-INF)(0.5)(1,4,1)(6,14,2)(INF)' ; levd='(-Inf)(-5)(-2,2,1)(-0.5)(-0.2)(0.2)(0.5)(5)(Inf)'; pal=rain_cmyk ; varmod=prc ; varobs=86400.*pr ;;
    9170           hfns) lev='(-INF)(-200,200,50)(-75)(-25)(25)(75)(INF)'; levd='(-Inf)(-80,80,20)(Inf)' ;;
    9271           tas) lev='(-INF)(-60,20,10)(6,26,4)(24)(27)(28)(30)(INF)' ; levd='(-Inf)(-8,8)(-4,4)(-2,2,1)(Inf)' ; varmod=-273.15+tas ; varobs=-273.15+tas ;;
  • BOL/Multi_atlas/make_html_libigcm.sh

    r4314 r4330  
    11#!/bin/bash
    22
     3#set -x
     4
     5source ./env.sh
    36
    47###########################################################################
     
    1619###########################################################################
    1720###########################################################################
    18 module load ferret
    19 
    20 #set -x
    21 
    22 login=`whoami`
     21
    2322logname=aidel
    2423comp=COMP
     24EXPNAME=NPV5LRL79
     25put=cp
    2526
    2627helptext="
     
    5152done
    5253
     54COMP_D=$MULTIDIR/$comp
     55DEF_FILE=$COMP_D/def.txt
     56HTML_D=$COMP_D
     57
     58####################################################################
     59if [ 1 == 0 ]; then
     60if [ ${hostname:0:5} = cicla ] || [ ${hostname:0:5} = spiri ]; then
     61
    5362###tmpdir=/thredds/ipsl/fabric/lmdz
    5463tmpdir=/thredds/ipsl/${login}/lmdz
     
    5766ROOTWEBORIG=""
    5867EXPNAME=IGCM_OUT/$CONFIGNAME/DEVT/clim
    59 machine=ciclad
    60 
    6168
    6269STORAGE=$ARCHIVE
     
    6572HTML_D=$ROOTSTORAGE/HTML
    6673
    67 machine=ciclad
    68 
    69 if [ "$machine" = "ciclad" ] ; then
     74DODSDIR=/thredds/ipsl
     75dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
     76HTML=http://${dthredds}/$login/lmdz/MultiSimu/$comp
     77DODSDIR=/thredds/ipsl
     78dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
     79HTML=http://${dthredds}/$login/lmdz/MultiSimu/$comp
     80####################################################################
    7081EXPNAME=NPV5LRL79
    7182put=cp
    72 ###CICLAD=/thredds/ipsl/fabric/lmdz
    7383CICLAD=/thredds/ipsl/${login}/lmdz
    7484ARCHIVE=$CICLAD/STORE
     
    7686STORAGE=$CICLAD
    7787ROOTWEBatlas=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/${logname}/lmdz/STORE/$EXPNAME
    78 ###MULTIDIR=/thredds/ipsl/fabric/lmdz/MultiSimu
    7988MULTIDIR=/thredds/ipsl/${login}/lmdz/MultiSimu
    8089COMP_D=$MULTIDIR/$comp
    8190DEF_FILE=$COMP_D/def.txt
    8291HTML_D=$COMP_D
    83 #runstxt=/home/fabric/LMDZ/MultiSimu/runs.txt
    84 fi
    85 
    8692
    8793ROOTSTORAGE=$ARCHIVE/$EXPNAME
     
    104110
    105111echo ROOTSTORAGE $ROOTSTORAGE ROOTWEB $ROOTWEB
     112
     113fi
     114fi
    106115 
    107116glob=1
  • BOL/Multi_atlas/mk_clouds_NOcalipso.sh

    r3737 r4330  
    11#!/bin/bash
    22
    3 login=`whoami`
     3source ./env.sh
    44
    55SE=$1
    66TG=$2
    77
    8 hostname=`hostname`
    9 if [ ${hostname:0:5} = cicla ] ; then
    10 DODSDIR=/modfs/ipslfs/dods
    11 fi
    12 if [ ${hostname:0:5} = camel ] ; then
    13 DODSDIR=/modfs/ipslfs/dods
    14 fi
    15 if [ ${hostname:0:5} = irene ] ; then
    16 DODSDIR=
    17 fi
    18 if [ ${hostname:0:5} = jean- ] ; then
    19 DODSDIR=
    20 fi
    21 
    22 ###cd /modfs/ipslfs/dods/fabric/lmdz/VLR/DJF/OBS/ZON
    238if [ ! -d $DODSDIR/$login/lmdz/VLR/$SE/OBS/$TG ] ; then
    249   mkdir -p $DODSDIR/$login/lmdz/VLR/$SE/OBS/$TG
  • BOL/Multi_atlas/multi_ZONE.sh

    r4307 r4330  
    11#!/bin/bash
     2
     3source ./env.sh
    24
    35###################################################
     
    1012 comp=$2
    1113 ZONE=$3
    12 
    13 login=`whoami`
    14 hostname=`hostname`
    15 if [ ${hostname:0:5} = cicla ] ; then
    16 DODSDIR=/thredds/ipsl
    17 fi
    18 if [ ${hostname:0:5} = camel ] ; then
    19 DODSDIR=/thredds/ipsl
    20 fi
    21 if [ ${hostname:0:5} = irene ] ; then
    22 DODSDIR=
    23 fi
    24 if [ ${hostname:0:5} = jean- ] ; then
    25 DODSDIR=
    26 fi
    2714
    2815MAINDIR=$DODSDIR/$login/lmdz
     
    10996pwd
    11097
    111 pwd
    11298echo OK0 $sims
    11399for sim in $sims ; do
     
    119105   ZONDIR=$MAINDIR/$GR/$SEAS/$sim/$ZONE
    120106   echo $ZONDIR
    121    pwd
    122107   file=`echo $sim | sed -e 's/_[0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9]//'`
    123108   echo ln -sf $ZONDIR/$var $file
     
    197182
    198183pwd
    199 ls
  • BOL/Multi_atlas/season.sh

    r3882 r4330  
    66####################################################################
    77
    8 login=`whoami`
     8source ./env.sh
     9
    910ulimit -s unlimited
    1011GR=VLR
    11 
    12 hostname=`hostname`
    13 if [ ${hostname:0:5} = cicla ] ; then
    14 DODSDIR=/thredds/ipsl
    15 fi
    16 if [ ${hostname:0:5} = camel ] ; then
    17 DODSDIR=/thredds/ipsl
    18 fi
    19 if [ ${hostname:0:5} = irene ] ; then
    20 DODSDIR=
    21 fi
    22 if [ ${hostname:0:5} = jean- ] ; then
    23 DODSDIR=
    24 fi
    2512
    2613MAINDIR=$DODSDIR/$login/lmdz
Note: See TracChangeset for help on using the changeset viewer.