|
Last change
on this file since 15464 was 15399, checked in by Daniela Dorner, 13 years ago |
|
implemented usage of new version of ganymed.C
|
-
Property svn:executable
set to
*
|
|
File size:
992 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| 3 |
|
|---|
| 4 | source `dirname $0`/../Sourcefile.sh
|
|---|
| 5 | printprocesslog "INFO starting $0"
|
|---|
| 6 |
|
|---|
| 7 | dsfile=$1
|
|---|
| 8 | ra=$2
|
|---|
| 9 | dec=$3
|
|---|
| 10 |
|
|---|
| 11 | outpath=`dirname $dsfile | sed -e 's/datasets/ganymed/'`
|
|---|
| 12 | makedir $outpath
|
|---|
| 13 |
|
|---|
| 14 | dsnum=`basename $dsfile | sed -e 's/dataset//' -e 's/[.]txt//'`
|
|---|
| 15 | output=$outpath/$dsnum
|
|---|
| 16 | logfile=$output"-ganymed.log"
|
|---|
| 17 |
|
|---|
| 18 | mars=/home/fact/Mars
|
|---|
| 19 | cd $mars
|
|---|
| 20 | # use macro from different mars version until versions are sorted out
|
|---|
| 21 | mars2=/home/fact/SW.automatic.processing/Mars.svn.2013.04.12
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | # run ganymed
|
|---|
| 25 | printprocesslog "INFO starting ganymed.C for dataset "$dsfile
|
|---|
| 26 | #echo "INFO starting ganymed.C for dataset "$dsfile
|
|---|
| 27 |
|
|---|
| 28 | check1=`root -q -b $mars2/fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep`
|
|---|
| 29 |
|
|---|
| 30 | case $check1 in
|
|---|
| 31 | 0) printprocesslog "INFO ganymed was successful for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"
|
|---|
| 32 | ;;
|
|---|
| 33 | *) printprocesslog "ERROR ganymed.C failed for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"
|
|---|
| 34 | ;;
|
|---|
| 35 | esac
|
|---|
| 36 |
|
|---|
| 37 | finish
|
|---|
| 38 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.