Changeset 18791


Ignore:
Timestamp:
03/24/17 00:46:36 (8 years ago)
Author:
Daniela Dorner
Message:
added check for path
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/FlareAlerts.sh

    r18783 r18791  
    2323emailfrom=dorner@astro.uni-wuerzburg.de
    2424emailto=fact-online@lists.phys.ethz.ch
     25
     26if [ ! -e $flarealertspath ] || [ "$flarealertspath" == "" ]
     27then
     28   echo "flarealertspath "$flarealertspath" missing on "$HOSTNAME
     29   printprocesslog "ERROR flarealertspath "$flarealertspath" missing on "$HOSTNAME
     30   finish
     31fi
     32voeventpath=$flarealertspath"/amon"
    2533
    2634logfile=$runlogpath"/FlareAlerts-"$datetime".log"
     
    177185   # nightly binning: night+sourcekey
    178186   # 20 min binning: night+source+?
    179    echo '        <Param name="id" dataType="float" value="3772" ucd="meta.number" unit=" ">'
     187   echo '        <Param name="id" dataType="float" value="'${night}`printf %03d $runid`${sourcekey}'" ucd="meta.number" unit=" ">'
    180188   echo '            <Description>Id number</Description>'
    181189   echo '        </Param>'
     
    469477         # missing: get summary of whole observation
    470478         
    471          # missing AMON cases - create VOEvent-File
     479         # AMON case: create VOEvent-File
    472480         if [ $triggertype -eq 4 ]
    473481         then
    474             echo "amon"
    475             voeventfile="/home/dorner/amon/test/"$night"_"`printf %03d $runid`"-"$exclimit"_"$siglimit"-source"$sourcekey".trigger"$triggertype".xml"
     482            voeventfile=$voeventpath"/"$night"_"`printf %03d $runid`"-"$exclimit"_"$siglimit"-source"$sourcekey".trigger"$triggertype".xml"
    476483            echo $voeventfile
    477484            echo ${sourceinfo[@]}
     
    614621   onlyifhigher="no"
    615622   bin=20
    616    echo "AMON"
     623   #echo "AMON"
    617624   echo " "$bin" min binning..." >> $logfile
    618625   get_query_minute_binning
Note: See TracChangeset for help on using the changeset viewer.