- Timestamp:
- 03/25/10 16:46:26 (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/detectbarotropicmode.sh
r40 r42 3 3 #+ 4 4 # 5 # NAME 6 # ==== 7 # 8 # detectbarotropicmode.sh - build file for detection of barotropic mode 5 # ======================= 6 # detectbarotropicmode.sh 7 # ======================= 8 # 9 # ------------------------------------------- 10 # build file for detection of barotropic mode 11 # ------------------------------------------- 9 12 # 10 13 # SYNOPSIS … … 92 95 ;; 93 96 *) # other choice 97 echo "eee : unknown option ${1}" 94 98 echo "${usage}" 95 99 ;; -
trunk/geomag_profile.sh
r40 r42 2 2 # 3 3 #+ 4 # 5 # NAME 6 # ==== 7 # 8 # geomag_profile.sh - define GEOMAG environment 4 # ================= 5 # geomag_profile.sh 6 # ================= 7 # 8 # ------------------------- 9 # define GEOMAG environment 10 # ------------------------- 9 11 # 10 12 # SYNOPSIS 11 13 # ======== 12 14 # 13 # Online usage 14 # 15 # :: 16 # 17 # $ . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 18 # 19 # In ${HOME}/.profile, add the following line 20 # 21 # :: 22 # 23 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 15 # Online usage:: 16 # 17 # $ . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 18 # 19 # In ${HOME}/.profile, add the following line:: 20 # 21 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 24 22 # 25 23 # DESCRIPTION … … 41 39 # ======== 42 40 # 43 # For fplod, on aedon.locean-ipsl.upmc.fr: 44 # :: 41 # For fplod, on aedon.locean-ipsl.upmc.fr:: 45 42 # 46 43 # $ cd /usr/home/fplod/incas/geomag/geomag_ws 47 44 # $ . geomag_profile.sh -d /usr/home/fplod/incas/geomag/geomag_ws/ -i ${HOME}/geomag_d/ -o ${HOME}/geomag_d/ -t /usr/temp/${LOGNAME}/log/ 48 45 # 49 # For reee522 on rhodes.idris.fr: 50 # :: 46 # For reee522 on rhodes.idris.fr:: 51 47 # 52 48 # $ cd ${HOME}/incas/geomag/geomag_ws/ 53 49 # $ . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ -i ${HOMEGAYA}/geomag_d/ -o ${HOMEGAYA}/geomag_d/ -t /tmp/${LOGNAME}/log/ 54 50 # 55 # 56 # FILES 57 # ===== 58 # 59 # original location 60 # ~~~~~~~~~~~~~~~~~ 61 # 62 # /usr/home/fplod/incas/geomag/geomag_ws/geomag_profile.sh sur aedon.locean-ipsl.upmc.fr 51 # TODO 52 # ==== 53 # 54 # ++ option bavarde 55 # 56 # ++ machine dependant 57 # 58 # ++ besoin de posix 59 # 60 # ++ pas de MANPATH defini par défaut sur zeus 63 61 # 64 62 # EVOLUTIONS 65 63 # ========== 66 64 # 67 # ++ option bavarde68 #69 # ++ machine dependant70 #71 # ++ besoin de posix72 #73 # ++ pas de MANPATH defini par déubt sur zeus74 #75 65 # $Id$ 66 # 67 # - fplod 20100318T073619Z aedon.locean-ipsl.upmc.fr (Darwin) 68 # 69 # * unset 76 70 # 77 71 # - reee522 2007-06-14T14:25:00Z rhodes (IRIX64) … … 99 93 usage=" Usage : ${command} -d directory -i indir -o outdir -t tempdir" 100 94 # 95 set +u 101 96 while [ ! -z "${1}" ] # ++ pb bash 102 97 do … … 120 115 121 116 *) # other choice 117 echo "eee : unknown option ${1}" 122 118 echo "${usage}" 123 119 # nb : no exit because this file should be launched by login process … … 126 122 shift # next flag 127 123 done 128 124 unset usage 125 # 126 set -u 127 # 129 128 # check for ${directory} 130 129 if [ ! -d ${directory} ] … … 151 150 ;; 152 151 esac 152 unset system 153 153 # 154 154 GEOMAG=${directory} 155 155 export GEOMAG 156 unset directory 156 157 # 157 158 # add GEOMAG tools to PATH … … 167 168 echo "${command} : iii : ${GEOMAG}/ already in \${PATH}" 168 169 fi 170 unset test_path 169 171 # 170 172 # add GEOMAG manuals to MANPATH … … 174 176 if [ ${test_manpath} -ne 0 ] 175 177 then 176 MANPATH=${GEOMAG}/ man/:${MANPATH}178 MANPATH=${GEOMAG}/doc/manuals/man/:${MANPATH} 177 179 export MANPATH 178 180 else 179 181 # option bavarde oui/non pas encore implantée ++ 180 echo "${command} : iii : ${GEOMAG}/man/ already in \${MANPATH}" 181 fi 182 echo "${command} : iii : ${GEOMAG}/doc/manuals/man/ already in \${MANPATH}" 183 fi 184 unset test_manpath 182 185 # 183 186 GEOMAG_LOG=${tempdir} 184 187 export GEOMAG_LOG 188 unset tempdir 185 189 if [ ! -d ${GEOMAG_LOG} ] 186 190 then … … 208 212 GEOMAG_ID=${indir} 209 213 export GEOMAG_ID 214 unset indir 210 215 if [ ! -d ${GEOMAG_ID} ] 211 216 then … … 222 227 GEOMAG_OD=${outdir} 223 228 export GEOMAG_OD 229 unset outdir 224 230 if [ ! -d ${GEOMAG_OD} ] 225 231 then … … 240 246 # 241 247 # end 248 unset command 242 249 # nb : no exit because this file should be launched by login process -
trunk/getmodelout.sh
r40 r42 2 2 # 3 3 #+ 4 # ============== 5 # getmodelout.sh 6 # ============== 4 7 # 5 # NAME 6 # ==== 7 # 8 # getmodelout.sh - get model data output file in ${GEOMAG_ID} 9 # 8 # ------------------------------------------ 9 # get model data output file in ${GEOMAG_ID} 10 # ------------------------------------------ 10 11 # 11 12 # SYNOPSIS … … 24 25 # ======== 25 26 # 26 # 27 # To get DRAKKAR G42 experiment output on grid T points beteween year 9 and 10: 28 # :: 27 # To get DRAKKAR G42 experiment output on grid T points beteween year 9 and 10:: 29 28 # 30 29 # $ getmodelout.sh -r ORCA025 -exp G42 -g gridT -yearmin 9 -yearmax 10 -o ${GEOMAG_OD}/list_G42 … … 34 33 # 35 34 # $Id$ 35 # 36 # - fplod 20100318T073947Z aedon.locean-ipsl.upmc.fr (Darwin) 37 # 38 # * unset 39 # 36 40 # - reee522 2007-11-26T11:21:37Z rhodes (IRIX64) 37 41 # … … 71 75 ;; 72 76 *) # other choice 77 echo "eee : unknown option ${1}" 73 78 echo "${usage}" 74 79 ;; … … 76 81 shift # next flag 77 82 done 83 unset usage 78 84 # 79 85 set -u … … 109 115 cyear=`printf "%4.4d" ${iyear}` 110 116 ls ${dirref}/${orcares}/${orcares}-${drakkar_exp}-S/${cyear}/${orcares}-${drakkar_exp}_y${cyear}m??d??_${grid}.nc >> ${listfull} 117 unset cyear 111 118 # ++ calcul taille cf myls dans faq es dods 112 119 # iyear=$(( ${iyear} + 1 )) ++ pas ok sur rhodes … … 114 121 iyear=`expr ${iyear} + 1 ` 115 122 done 123 unset iyear 124 unset dirref 125 unset orcares 126 unset drakkar_exp 127 unset grid 116 128 # 117 129 # print total size of model files … … 129 141 echo ${GEOMAG_ID}/`basename ${file}` >> ${list} 130 142 done 143 unset listfull 131 144 # 132 145 # end -
trunk/step2_diff.sh
r39 r42 3 3 #+ 4 4 # 5 # NAME 6 # ==== 5 # ============= 6 # step2_diff.sh 7 # ============= 7 8 # 8 # step2_diff.sh - launch step2_diff.pro with year argument 9 # 9 # ------------------------------------------ 10 # launch step2_diff.pro with year argument 11 # ------------------------------------------ 10 12 # 11 13 # SYNOPSYS … … 19 21 # ======== 20 22 # 21 # For test on year 1994: 22 # :: 23 # For test on year 1994:: 23 24 # 24 25 # $ ./step2_diff.sh -y 1994 25 #26 # FILES27 # =====28 #29 # original location30 # ~~~~~~~~~~~~~~~~~31 #32 # /usr/home/fplod/incas/geomag/geomag_ws/step2_diff.sh sur aedon.locean-ipsl.upmc.fr33 26 # 34 27 # EVOLUTIONS … … 36 29 # 37 30 # $Id$ 31 # 32 # - fplod 20100318T074009Z aedon.locean-ipsl.upmc.fr (Darwin) 33 # 34 # * unset 38 35 # 39 36 # - fplod 2007-08-22T08:50:02Z aedon.locean-ipsl.upmc.fr (Darwin) … … 52 49 ;; 53 50 esac 51 unset system 54 52 # 55 53 command=$(basename ${0}) … … 65 63 ;; 66 64 *) # other choice 65 echo "eee : unknown option ${1}" 67 66 echo "${usage}" 68 67 exit 1 … … 71 70 shift # next flag 72 71 done 72 unset usage 73 73 # 74 74 # ++ check year validity … … 85 85 EOF 86 86 # 87 unset year 88 # 87 89 # launch IDL with the sequence 88 90 ${IDL_DIR}/bin/idl < /tmp/${command}${$}.pro
Note: See TracChangeset
for help on using the changeset viewer.