Changeset 4330 for BOL/Multi_atlas/METRICS
- Timestamp:
- Nov 9, 2022, 3:27:12 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/METRICS/metrics.sh
r4306 r4330 1 1 #!/bin/bash 2 2 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 3 source ../env.sh 4 5 #set -vx 20 6 force_create=1 21 7 22 8 comp=$1 23 local=`pwd `9 local=`pwd -P` 24 10 25 11 for season in YEAR DJF JJA ; do 26 27 12 28 13 cd $local … … 47 32 COMP_D=$DODSDIR/$login/lmdz/MultiSimu/$comp 48 33 CMOR_DIR=$DODSDIR/$login/lmdz/VLR/$season 34 echo COMP_D $COMP_D CMOR_DIR $CMOR_DIR 49 35 elif [ "$comp" = "$1" ] ; then 50 36 # Installation locale … … 60 46 # Liste des simulations de la comparasion $comp 61 47 listsims="" ; listsimsy="" 48 62 49 DEF_FILE=$COMP_D/def.txt ; if [ ! -f "$DEF_FILE" ] ; then renseigner $DEF_FILE ; exit ; fi 63 50 for s in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do listsimsy="$listsimsy $s" ; done … … 74 61 echo years $years 75 62 76 77 63 SIM_DIR=$CMOR_DIR/$GR/$sim$years 78 ETOA_DIR=$SIM_DIR/METRICS 79 64 ETOA_DIR=$SIM_DIR/METRICS 80 65 81 66 for mask in $masks ; do … … 86 71 if [ ! -d $SIM_DIR ] ; then echo $SIM_DIR absent ; exit ; fi 87 72 set +e ; \rm resu$sim ; set -e 88 for var in rsut clhcalipso cllcalipso clmcalipso cltcalipso clt hfls evahfss hurs huss pr ts tas sst psl rldscs rlds rlus rlutcs rlut rsdscs rsds rsdt rsuscs rsus rsutcs prw ; do73 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 89 74 if [ -f "$SIM_DIR/NC/$var.nc" ] ; then 90 75 if [ "$mask" = "glob" ] ; then … … 118 103 rlutcs=`grep '^rlutcs ' $xmgr | awk ' { print $2 } '` 119 104 hfls=`grep '^hfls ' $xmgr | awk ' { print $2 } '` 120 eva=`grep '^eva ' $xmgr | awk ' { print $2 } '`121 105 hfss=`grep '^hfss ' $xmgr | awk ' { print $2 } '` 122 106 rlds=`grep '^rlds ' $xmgr | awk ' { print $2 } '` … … 128 112 rsuscs=`grep '^rsuscs ' $xmgr | awk ' { print $2 } '` 129 113 rsdt=`grep '^rsdt ' $xmgr | awk ' { print $2 } '` 114 echo $hfls | awk ' { print "eva" , $1 * 0.03456 } ' >> $xmgr 130 115 echo $rsut $rsutcs | awk ' { print "crest" , $2 - $1 } ' >> $xmgr 131 116 echo $rlut $rlutcs | awk ' { print "crelt" , $2 - $1 } ' >> $xmgr … … 160 145 # Tracers 161 146 ######################################################################################### 162 163 164 147 165 148 cat <<eod>| descr
Note: See TracChangeset
for help on using the changeset viewer.