Last change
on this file since 15574 was 15522, checked in by Daniela Dorner, 12 years ago |
move to svn mars version
|
-
Property svn:executable
set to
*
|
File size:
893 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/SW.automatic.processing/Mars.svn.2013.04.29
|
---|
19 | cd $mars
|
---|
20 |
|
---|
21 |
|
---|
22 | # run ganymed
|
---|
23 | printprocesslog "INFO starting ganymed.C for dataset "$dsfile
|
---|
24 | #echo "INFO starting ganymed.C for dataset "$dsfile
|
---|
25 |
|
---|
26 | check1=`root -q -b fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep`
|
---|
27 |
|
---|
28 | case $check1 in
|
---|
29 | 0) printprocesslog "INFO ganymed was successful for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"
|
---|
30 | ;;
|
---|
31 | *) printprocesslog "ERROR ganymed.C failed for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"
|
---|
32 | ;;
|
---|
33 | esac
|
---|
34 |
|
---|
35 | finish
|
---|
36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.