Changeset 42 for trunk/getmodelout.sh


Ignore:
Timestamp:
03/25/10 16:46:26 (14 years ago)
Author:
pinsard
Message:

improvements of headers and unset in shell scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/getmodelout.sh

    r40 r42  
    22# 
    33#+ 
     4# ============== 
     5# getmodelout.sh 
     6# ============== 
    47# 
    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# ------------------------------------------ 
    1011# 
    1112# SYNOPSIS 
     
    2425# ======== 
    2526# 
    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:: 
    2928# 
    3029#  $ getmodelout.sh -r ORCA025 -exp G42 -g gridT -yearmin 9 -yearmax 10 -o ${GEOMAG_OD}/list_G42 
     
    3433# 
    3534# $Id$ 
     35# 
     36# - fplod 20100318T073947Z aedon.locean-ipsl.upmc.fr (Darwin) 
     37# 
     38#   * unset 
     39# 
    3640# - reee522 2007-11-26T11:21:37Z rhodes (IRIX64) 
    3741# 
     
    7175 ;; 
    7276 *) # other choice 
     77   echo "eee : unknown option ${1}" 
    7378   echo "${usage}" 
    7479 ;; 
     
    7681 shift # next flag 
    7782done 
     83unset usage 
    7884# 
    7985set -u 
     
    109115  cyear=`printf "%4.4d" ${iyear}` 
    110116  ls ${dirref}/${orcares}/${orcares}-${drakkar_exp}-S/${cyear}/${orcares}-${drakkar_exp}_y${cyear}m??d??_${grid}.nc >> ${listfull} 
     117  unset cyear 
    111118  # ++ calcul taille cf myls dans faq es dods 
    112119  # iyear=$(( ${iyear} + 1 )) ++ pas ok sur rhodes 
     
    114121  iyear=`expr  ${iyear} + 1 ` 
    115122done 
     123unset iyear 
     124unset dirref 
     125unset orcares 
     126unset drakkar_exp 
     127unset grid 
    116128# 
    117129# print total size of model files 
     
    129141  echo ${GEOMAG_ID}/`basename ${file}` >> ${list} 
    130142done 
     143unset listfull 
    131144# 
    132145# end 
Note: See TracChangeset for help on using the changeset viewer.