source: trunk/DataCheck/QuickLook/RunGanymed.sh@ 15399

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