Changeset 151


Ignore:
Timestamp:
03/05/12 11:09:14 (12 years ago)
Author:
pinsard
Message:

draft for global processing tool

Location:
trunk/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/project_profile.sh

    • Property svn:keywords set to Id URL
    r106 r151  
    1616# 
    1717#  $ . ./project_profile.sh -d directory -i indir -o outdir -t tempdir -s saxo_dir 
    18 # 
    1918# In ${HOME}/.profile, add the following line:: 
    2019# 
     
    2928# .. option:: -t  <tempdir> 
    3029# .. option:: -s  <saxo_dir> 
     30# .. option:: -idl_cmd  <idl_cmd> 
    3131# 
    3232# define PROJECT environment 
     
    4646# IDL_STARTUP is set to tell IDL where find tools. 
    4747# 
     48# If :option:`idl_cmd` is used, **idl_cmd** will be used as the IDL command  
     49# when launched from scripts.  
     50# By default, ${IDL_CMD} is set to `idl`.  
     51# 
    4852# FER_GO is completed with ${PROJECT}/src/ and ${PROJECT}/src/test/. 
    49 # 
    5053# 
    5154# SEE ALSO 
     
    8083#    -s ${HOME}/SAXO_DIR/ 
    8184# 
    82 # For pinsard on camelot.ipsl.polytechnique.fr or merlin15-c.climserv:: 
     85# For pinsard on camelot.ipsl.polytechnique.fr or merlin15-c.climserv to use  
     86# idl6.4:: 
    8387# 
    8488#  $ cd ${HOME}/tropflux/ 
     
    8791#   -i /homedata/${LOGNAME}/tropflux_d/ \ 
    8892#   -o /homedata/${LOGNAME}/tropflux_d/ \ 
    89 #   -t /homedata/${LOGNAME}/log/ 
    90 #   -s ${HOME}/SAXO_DIR/ 
     93#   -t /homedata/${LOGNAME}/log/ \ 
     94#   -s ${HOME}/SAXO_DIR/ \ 
     95#   -idl_cmd /opt/idl-6.4/idl/bin/idl 
    9196# 
    9297# TODO 
     
    105110# 
    106111# $Id$ 
     112# 
     113# $URL$ 
     114# 
     115# - fplod 20120305 
     116# 
     117#   * add idl_cmd option 
     118#   * improve with set -u 
    107119# 
    108120# - fplod 20111104T130726Z cratos (Linux) 
     
    142154unset system 
    143155# 
     156set -u 
     157# 
    144158LANG=C 
    145159# 
     
    147161command=project_profile.sh 
    148162# 
    149 usage=" Usage : ${command} -d directory -i indir -o outdir -t tempdir -s saxo_dir" 
    150 # 
    151 set +u 
    152 while [ ! -z "${1}" ] 
     163usage=" Usage : ${command} -d directory -i indir -o outdir -t tempdir -s saxo_dir -idl_cmd idl_cmd" 
     164# 
     165# default 
     166idl_cmd=idl 
     167# 
     168while [ ${#} -gt 0 ] 
    153169do 
    154170   case ${1} in 
     
    177193         saxo_dir=${2} 
    178194         shift 
     195      ;; 
     196      -idl_cmd) 
     197         # command for idl 
     198         idl_cmd=${2} 
     199         shift 
    179200      ;; 
    180201      *) 
     
    320341export FER_GO 
    321342# 
     343# set up for idl 
     344IDL_CMD=${idl_cmd} 
     345export IDL_CMD 
     346unset idl_cmd 
     347# 
    322348SAXO_DIR=${saxo_dir} 
    323349export SAXO_DIR 
Note: See TracChangeset for help on using the changeset viewer.