Changeset 39
- Timestamp:
- 11/26/08 11:06:43 (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/detectbarotropicmode.sh
r35 r39 1 #!/bin/sh 2 # 3 # module : 4 # build file for detection of barotropic mode 5 # 6 # example : 7 # $ detectbarotropicmode.sh -l ${GEOMAG_OD}/list_G42 -r ORCA025 -exp G42 -g gridT \ 8 # -latmin -50 -latmax -30 -longmin 295 -longmax 335 9 # 10 # update : 1 #! /bin/sh 2 # 3 #+ 4 # 5 # NAME 6 # ==== 7 # 8 # detectbarotropicmode.sh - build file for detection of barotropic mode 9 # 10 # SYNOPSYS 11 # ======== 12 # 13 # :: 14 # 15 # $ detectbarotropicmode.sh -l list -r resolution -exp experience -g grid \ 16 # -latmin latmin -latmax latmax -longmin longmin -longmax longmax 17 # 18 # DESCRIPTION 19 # =========== 20 # 21 # 22 # EXAMPLES 23 # ======== 24 # 25 # For detection on DRAKKAR G42 experiment with ORCA025 resolution on T points 26 # in the box [-50,30] [295,335]: 27 # :: 28 # 29 # $ detectbarotropicmode.sh -l ${GEOMAG_OD}/list_G42 -r ORCA025 -exp G42 -g gridT \ 30 # -latmin -50 -latmax -30 -longmin 295 -longmax 335 31 # 32 # EVOLUTIONS 33 # ========== 34 # 11 35 # $Id$ 36 # 12 37 # pas fini ++ 13 # reee522 2007-11-26T11:33:42Z rhodes (IRIX64) 14 # externalization of copy of data file in getmodelout.sh 15 # reee522 2007-11-26T10:55:44Z rhodes (IRIX64) 16 # add ncks, ncrcat and some informations inspired by 17 # http://dods.ipsl.jussieu.fr/projets_ES/misc/myls 18 # fplod 2007-11-23T17:02:56Z aedon.locean-ipsl.upmc.fr (Darwin) 19 # creation 38 # 39 # - reee522 2007-11-26T11:33:42Z rhodes (IRIX64) 40 # 41 # * externalization of copy of data file in getmodelout.sh 42 # 43 # - reee522 2007-11-26T10:55:44Z rhodes (IRIX64) 44 # 45 # * add ncks, ncrcat and some informations inspired by 46 # http://dods.ipsl.jussieu.fr/projets_ES/misc/myls 47 # 48 # - fplod 2007-11-23T17:02:56Z aedon.locean-ipsl.upmc.fr (Darwin) 49 # 50 # * creation 51 # 52 #- 20 53 # 21 54 command=detectbarotropicmode.sh -
trunk/geomag.kml
- Property svn:keyword set to Id
r38 r39 6 6 7 7 update : 8 ++ l'afrique et l'antarctique (20 ° Est) et entre l'australie et l'antarctique (147 ° Est) 8 9 $Id$ 9 10 fplod 2007-11-27T10:59:53Z aedon.locean-ipsl.upmc.fr (Darwin) -
trunk/geomag_profile.sh
r26 r39 1 # !/bin/sh -xv 2 # 3 # module : 1 #! /bin/sh -xv 2 # 3 #+ 4 # 5 # NAME 6 # ==== 7 # 8 # geomag_profile.sh - define GEOMAG environnement 9 # 10 # SYNOPSYS 11 # ======== 12 # 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 24 # 25 # DESCRIPTION 26 # =========== 27 # 4 28 # define GEOMAG environnement 5 29 # 6 # usage : 7 # online usage 8 # $ . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 9 # 10 # in ${HOME}/.profile, add the following line 11 # . geomag_profile.sh -d directory -i indir -o outdir -t tempdir 12 # 13 # examples : 14 # for fplod, on aedon.locean-ipsl.upmc.fr 15 # $ cd /usr/home/fplod/incas/geomag/geomag_ws 16 # $ . geomag_profile.sh -d /usr/home/fplod/incas/geomag/geomag_ws/ -i ${HOME}/geomag_d/ -o ${HOME}/geomag_d/ -t /usr/temp/${LOGNAME}/log/ 17 # 18 # for reee522 on rhodes.idris.fr 19 # $ cd ${HOME}/incas/geomag/geomag_ws/ 20 # $ . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ -i ${HOMEGAYA}/geomag_d/ -o ${HOMEGAYA}/geomag_d/ -t /tmp/${LOGNAME}/log/ 30 # ${GEOMAG} 31 # 32 # ${GEOMAG_LOG} 33 # 34 # ${GEOMAG_ID} 35 # 36 # ${GEOMAG_OD} 37 # 38 # MANPATH++ 39 # 40 # EXAMPLES 41 # ======== 42 # 43 # For fplod, on aedon.locean-ipsl.upmc.fr: 44 # :: 45 # 46 # $ cd /usr/home/fplod/incas/geomag/geomag_ws 47 # $ . 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 # 49 # For reee522 on rhodes.idris.fr: 50 # :: 51 # 52 # $ cd ${HOME}/incas/geomag/geomag_ws/ 53 # $ . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ -i ${HOMEGAYA}/geomag_d/ -o ${HOMEGAYA}/geomag_d/ -t /tmp/${LOGNAME}/log/ 54 # 55 # 56 # FILES 57 # ===== 21 58 # 22 59 # original location 23 # geomag_profile.sh sur aedon.lodyc.jussieu.fr 24 # 25 # update : 60 # ~~~~~~~~~~~~~~~~~ 61 # 62 # /usr/home/fplod/incas/geomag/geomag_ws/geomag_profile.sh sur aedon.locean-ipsl.upmc.fr 63 # 64 # EVOLUTIONS 65 # ========== 66 # 26 67 # ++ option bavarde 68 # 27 69 # ++ machine dependant 70 # 28 71 # ++ besoin de posix 72 # 29 73 # ++ pas de MANPATH defini par déubt sur zeus 30 # reee522 2007-06-14T14:25:00Z rhodes (IRIX64) 31 # add -i, -o and -t parameters to be more flexible 32 # some bug fixes 33 # more checking 34 # fplod 2007-03-13T16:12:41Z zeus.locean-ipsl.upmc.fr (Linux) 35 # add creation of $GEOMAG_ID and $GEOMAG_OD if they don't exist 36 # reee522 2006-11-23T11:41:41Z rhodes (IRIX64) 37 # pas de set -o posix sur rhodes (IRIX64) 74 # 38 75 # $Id$ 39 # fplod 2006-03-22T10:13:38Z aedon.lodyc.jussieu.fr (Darwin) 40 # creation 41 # 76 # 77 # - reee522 2007-06-14T14:25:00Z rhodes (IRIX64) 78 # 79 # * add -i, -o and -t parameters to be more flexible 80 # * some bug fixes 81 # * more checking 82 # 83 # - fplod 2007-03-13T16:12:41Z zeus.locean-ipsl.upmc.fr (Linux) 84 # 85 # * add creation of $GEOMAG_ID and $GEOMAG_OD if they don't exist 86 # 87 # - reee522 2006-11-23T11:41:41Z rhodes (IRIX64) 88 # 89 # * pas de set -o posix sur rhodes (IRIX64) 90 # 91 # - fplod 2006-03-22T10:13:38Z aedon.lodyc.jussieu.fr (Darwin) 92 # 93 # * creation 94 # 95 #- 42 96 # 43 97 command=geomag_profile.sh … … 129 183 GEOMAG_LOG=${tempdir} 130 184 export GEOMAG_LOG 131 if [ ! -d ${GEOMAG_LOG} ] 185 if [ ! -d ${GEOMAG_LOG} ] 132 186 then 133 187 mkdir -p ${GEOMAG_LOG} 134 188 echo "${command} : iii : creation of \${GEOMAG_LOG}" 135 fi 189 fi 136 190 # check for permission on GEOMAG_LOG 137 191 if [ ! -x ${GEOMAG_LOG} ] … … 154 208 GEOMAG_ID=${indir} 155 209 export GEOMAG_ID 156 if [ ! -d ${GEOMAG_ID} ] 210 if [ ! -d ${GEOMAG_ID} ] 157 211 then 158 212 mkdir -p ${GEOMAG_ID} 159 213 echo "${command} : iii : creation of \${GEOMAG_ID}" 160 fi 214 fi 161 215 # check for permission on GEOMAG_ID 162 216 if [ ! -x ${GEOMAG_ID} ] -
trunk/getmodelout.sh
- Property svn:keyword set to Id
r35 r39 1 #! /bin/sh1 #! /bin/sh 2 2 # 3 # module : 4 # get model data output file in ${GEOMAG_ID) 3 #+ 5 4 # 6 # usage :7 # $ getmodelout.sh -r orcares -exp drakkar_exp -g grid -yearmin yyyy -yearmax yyyy -o list5 # NAME 6 # ==== 8 7 # 9 # example : 10 # $ getmodelout.sh -r ORCA025 -exp G42 -g gridT -yearmin 9 -yearmax 10 -o ${GEOMAG_OD}/list_G42 8 # getmodelout.sh - get model data output file in ${GEOMAG_ID} 11 9 # 12 # update : 10 # # 11 # SYNOPSYS 12 # ======== 13 # 14 # :: 15 # 16 # $ getmodelout.sh -r orcares -exp drakkar_exp -g grid -yearmin yyyy -yearmax yyyy -o list 17 # 18 # DESCRIPTION 19 # =========== 20 # 21 # get model data output file in ${GEOMAG_ID} 22 # 23 # EXAMPLES 24 # ======== 25 # 26 # 27 # To get DRAKKAR G42 experiment output on grid T points beteween year 9 and 10: 28 # :: 29 # 30 # $ getmodelout.sh -r ORCA025 -exp G42 -g gridT -yearmin 9 -yearmax 10 -o ${GEOMAG_OD}/list_G42 31 # 32 # EVOLUTIONS 33 # ========== 34 # 13 35 # $Id$ 14 # reee522 2007-11-26T11:21:37Z rhodes (IRIX64) 15 # creation 16 # 36 # - reee522 2007-11-26T11:21:37Z rhodes (IRIX64) 37 # 38 # * creation 39 #- 17 40 # 18 41 command=getmodelout.sh … … 35 58 shift 36 59 ;; 37 -yearmin) 60 -yearmin) 38 61 yearmin=${2} 39 62 shift 40 63 ;; 41 -yearmax) 64 -yearmax) 42 65 yearmax=${2} 43 66 shift 44 67 ;; 45 -o) 68 -o) 46 69 list=${2} 47 70 shift … … 83 106 iyear=${yearmin} 84 107 while [ ${iyear} -le ${yearmax} ] 85 do 108 do 86 109 cyear=`printf "%4.4d" ${iyear}` 87 110 ls ${dirref}/${orcares}/${orcares}-${drakkar_exp}-S/${cyear}/${orcares}-${drakkar_exp}_y${cyear}m??d??_${grid}.nc >> ${listfull} … … 89 112 # iyear=$(( ${iyear} + 1 )) ++ pas ok sur rhodes 90 113 # iyear=$(expr ${iyear} + 1 ) ++ pas ok sur rhodes 91 iyear=`expr ${iyear} + 1 ` 114 iyear=`expr ${iyear} + 1 ` 92 115 done 93 116 # … … 96 119 #ls -l `cat ${listfull}` | \ 97 120 #awk 'NF>4 {print $5, $9}' | \ 98 #awk 'sum=$1/'$unitsop'+sum {printf("%08.3f '$units' -- %s\n",$1/'$unitsop', $2)} 121 #awk 'sum=$1/'$unitsop'+sum {printf("%08.3f '$units' -- %s\n",$1/'$unitsop', $2)} 99 122 # 100 123 # put files in ${GEOMAG_ID} 101 # ++ ln cp ou scp 102 # ++ -f ou test si deja existant 124 # ++ ln cp ou scp 125 # ++ -f ou test si deja existant 103 126 for file in `cat ${listfull}` 104 127 do 105 128 ln -sf ${file} ${GEOMAG_ID} 106 129 echo ${GEOMAG_ID}/`basename ${file}` >> ${list} 107 done 130 done 108 131 # 109 132 # end -
trunk/step2_diff.sh
r31 r39 1 # !/bin/sh 2 # module : 3 # launch step2_diff.pro with year argument 1 #! /bin/sh 4 2 # 5 # source : 6 # step2_diff.sh 3 #+ 7 4 # 8 # example :9 # ./step2_diff.sh -y 19945 # NAME 6 # ==== 10 7 # 11 # update : 8 # step2_diff.sh - launch step2_diff.pro with year argument 9 # 10 # 11 # SYNOPSYS 12 # ======== 13 # 14 # :: 15 # 16 # $ step2_diff.sh -y year 17 # 18 # EXAMPLES 19 # ======== 20 # 21 # For test on year 1994: 22 # :: 23 # 24 # $ ./step2_diff.sh -y 1994 25 # 26 # FILES 27 # ===== 28 # 29 # original location 30 # ~~~~~~~~~~~~~~~~~ 31 # 32 # /usr/home/fplod/incas/geomag/geomag_ws/step2_diff.sh sur aedon.locean-ipsl.upmc.fr 33 # 34 # EVOLUTIONS 35 # ========== 36 # 12 37 # $Id$ 13 # fplod 2007-08-22T08:50:02Z aedon.locean-ipsl.upmc.fr (Darwin)14 # creation to avoid retall and redefinition of file1 and file215 38 # 16 set -o posix 17 command=$(basename ${0} .sh) 18 # 39 # - fplod 2007-08-22T08:50:02Z aedon.locean-ipsl.upmc.fr (Darwin) 40 # 41 # * creation to avoid retall and redefinition of file1 and file2 42 # 43 #- 44 # 45 system=$(uname) 46 case "${system}" in 47 AIX|IRIX64) 48 echo " www : no specific posix checking" 49 ;; 50 *) 51 set -o posix 52 ;; 53 esac 54 # 55 command=$(basename ${0}) 56 # 19 57 usage=" Usage : ${command} -y year" 20 58 # … … 54 92 # 55 93 # end 56 exit 0 94 exit 0
Note: See TracChangeset
for help on using the changeset viewer.