Changeset 39


Ignore:
Timestamp:
11/26/08 11:06:43 (15 years ago)
Author:
pinsard
Message:

ResST comments in shell scripts

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# 
    1135# $Id$ 
     36# 
    1237# 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#- 
    2053# 
    2154command=detectbarotropicmode.sh 
  • trunk/geomag.kml

    • Property svn:keyword set to Id
    r38 r39  
    66 
    77update : 
     8++ l'afrique et l'antarctique (20 ° Est) et entre l'australie et l'antarctique (147 ° Est) 
    89$Id$ 
    910fplod 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# 
    428# define GEOMAG environnement 
    529# 
    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# ===== 
    2158# 
    2259# 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# 
    2667# ++ option bavarde 
     68# 
    2769# ++ machine dependant 
     70# 
    2871# ++ besoin de posix 
     72# 
    2973# ++ 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# 
    3875# $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#- 
    4296# 
    4397command=geomag_profile.sh 
     
    129183GEOMAG_LOG=${tempdir} 
    130184export GEOMAG_LOG 
    131 if [ ! -d ${GEOMAG_LOG} ]  
     185if [ ! -d ${GEOMAG_LOG} ] 
    132186then 
    133187  mkdir -p ${GEOMAG_LOG} 
    134188  echo "${command} : iii : creation of \${GEOMAG_LOG}" 
    135 fi  
     189fi 
    136190# check for permission on GEOMAG_LOG 
    137191if [ ! -x ${GEOMAG_LOG} ] 
     
    154208GEOMAG_ID=${indir} 
    155209export GEOMAG_ID 
    156 if [ ! -d ${GEOMAG_ID} ]  
     210if [ ! -d ${GEOMAG_ID} ] 
    157211then 
    158212  mkdir -p ${GEOMAG_ID} 
    159213  echo "${command} : iii : creation of \${GEOMAG_ID}" 
    160 fi  
     214fi 
    161215# check for permission on GEOMAG_ID 
    162216if [ ! -x ${GEOMAG_ID} ] 
  • trunk/getmodelout.sh

    • Property svn:keyword set to Id
    r35 r39  
    1 #!/bin/sh 
     1#! /bin/sh 
    22# 
    3 # module : 
    4 # get model data output file in ${GEOMAG_ID) 
     3#+ 
    54# 
    6 # usage : 
    7 # $ getmodelout.sh -r orcares -exp drakkar_exp -g grid -yearmin yyyy -yearmax yyyy -o list 
     5# NAME 
     6# ==== 
    87# 
    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} 
    119# 
    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# 
    1335# $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#- 
    1740# 
    1841command=getmodelout.sh 
     
    3558    shift 
    3659 ;; 
    37  -yearmin)  
     60 -yearmin) 
    3861   yearmin=${2} 
    3962   shift 
    4063 ;; 
    41  -yearmax)  
     64 -yearmax) 
    4265   yearmax=${2} 
    4366   shift 
    4467 ;; 
    45  -o)  
     68 -o) 
    4669   list=${2} 
    4770   shift 
     
    83106iyear=${yearmin} 
    84107while [ ${iyear} -le ${yearmax} ] 
    85 do  
     108do 
    86109  cyear=`printf "%4.4d" ${iyear}` 
    87110  ls ${dirref}/${orcares}/${orcares}-${drakkar_exp}-S/${cyear}/${orcares}-${drakkar_exp}_y${cyear}m??d??_${grid}.nc >> ${listfull} 
     
    89112  # iyear=$(( ${iyear} + 1 )) ++ pas ok sur rhodes 
    90113  # iyear=$(expr  ${iyear} + 1 )  ++ pas ok sur rhodes 
    91   iyear=`expr  ${iyear} + 1 `  
     114  iyear=`expr  ${iyear} + 1 ` 
    92115done 
    93116# 
     
    96119#ls -l `cat ${listfull}` | \ 
    97120#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)} 
    99122# 
    100123# 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 
    103126for file in  `cat ${listfull}` 
    104127do 
    105128  ln -sf ${file} ${GEOMAG_ID} 
    106129  echo ${GEOMAG_ID}/`basename ${file}` >> ${list} 
    107 done  
     130done 
    108131# 
    109132# end 
  • trunk/step2_diff.sh

    r31 r39  
    1 # !/bin/sh 
    2 # module : 
    3 # launch step2_diff.pro with year argument 
     1#! /bin/sh 
    42# 
    5 # source : 
    6 # step2_diff.sh 
     3#+ 
    74# 
    8 # example : 
    9 # ./step2_diff.sh -y 1994 
     5# NAME 
     6# ==== 
    107# 
    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# 
    1237# $Id$ 
    13 # fplod 2007-08-22T08:50:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
    14 # creation to avoid retall and redefinition of file1 and file2 
    1538# 
    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# 
     45system=$(uname) 
     46case "${system}" in 
     47AIX|IRIX64) 
     48 echo " www : no specific posix checking" 
     49;; 
     50*) 
     51 set -o posix 
     52;; 
     53esac 
     54# 
     55command=$(basename ${0}) 
     56# 
    1957usage=" Usage : ${command} -y year" 
    2058# 
     
    5492# 
    5593# end 
    56 exit 0  
     94exit 0 
Note: See TracChangeset for help on using the changeset viewer.