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

Last change on this file since 15658 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
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/SW.automatic.processing/Mars.svn.2013.04.29
19cd $mars
20
21
22# run ganymed
23printprocesslog "INFO starting ganymed.C for dataset "$dsfile
24#echo "INFO starting ganymed.C for dataset "$dsfile
25
26check1=`root -q -b fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep`
27
28case $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 ;;
33esac
34
35finish
36
Note: See TracBrowser for help on using the repository browser.