Ignore:
Timestamp:
08/31/07 13:20:42 (17 years ago)
Author:
snruegam
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/runstar

    r8690 r8723  
    1919#
    2020#   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
     21#   Author(s): Stefan Ruegamer 08/2007 <mailto:snruegam@astro.uni-wuerzburg.de>
    2122#
    2223#   Copyright: MAGIC Software Development, 2000-2007
     
    2829#
    2930# As star takes some time, only one sequence is processed at once.
    30 # First the script gets a sequence number from the database, for which
     31# First the script gets a sequence number from the database for which
    3132# star has to be done (function gettodo). After setting the status in the
    32 # database (set fStartTime to know, that the sequence is already being
     33# database (set fStartTime; to know that the sequence is already being
    3334# processed), the image parameters are calculated for the sequence.
    3435# Afterwards the status in the database is updated according to the return
     
    3637# The important INFOs, WARNings and ERRORs are written not only to the
    3738# scriptlog but also to the processlog.
    38 # 
    39 # The star.rc file is taken from the Mars directory.
     39#
     40# The star.rc files are taken from the datacenter/setup/star directory
    4041#
    4142
     
    7778
    7879
    79 echo "./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile  2>> $scriptlog> /dev/null" >> $scriptlog 2>&1
    80 ./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile  2>> $scriptlog> /dev/null
     80# define star.rc files
     81starrcnew=$setuppath/$program/star.rc
     82starrcmux=$setuppath/$program/star_mux.rc
     83# link star.rc file
     84echo "linking the star.rc file to $outpath" >> $scriptlog 2>&1
     85if [ $sequence -gt 200000 ]
     86then
     87   ln -vsf $starrcmux $outpath/star.rc >> $scriptlog 2>&1
     88else
     89   ln -vsf $starrcnew $outpath/star.rc >> $scriptlog 2>&1
     90fi
     91starrcseq=$outpath/star.rc
     92
     93echo "./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile --config=$starrcseq 2>> $scriptlog> /dev/null" >> $scriptlog 2>&1
     94./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile --config=$starrcseq 2>> $scriptlog> /dev/null
    8195check1=$?
    8296
Note: See TracChangeset for help on using the changeset viewer.