Ignore:
Timestamp:
04/28/21 18:27:29 (4 years ago)
Author:
maslowski
Message:
Fixed error handeling regarding fitsdump, star and callisto. Also Fixed some typos.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/hawc/processing/DiskToDB/extract-raw-header2.sh

    r20091 r20093  
    3232# define variables
    3333OUTPUT=insert-raw.sql
    34 readonly FITSDUMP="/home/frankm/Dateien/FACT++_0/build/fitsdump"
     34readonly FITSDUMP="/home/frankm/Dateien/FACT++/build/fitsdump"
    3535readonly PROGRAM=$0
    3636INSERT="INSERT INTO"
     
    167167        # necessary, removes enclosures around hex-numbers and adds
    168168        # commas after all lines except the last one
    169         # FIXME: fitsdump -h alway returns error. Must be fixed in FACT++
    170         #        so pipe errors from this are ignored. Also fitsdump outputs
    171         #        some info to filedescriptor 2. So error outputs are now
    172         #        redirected to filedescriptor 4, which redirects to LOG.
    173         set +o pipefail
    174169        RESULT=`${FITSDUMP} -h "${ROOT}" 2>&4 \
    175170                | grep "${TOGREP}" \
     
    189184                | sed "s/^\(.*\)'\(0x[0-9a-f]*\)'\(.*\)$/\1\2\3/g" \
    190185                | sed '$!s/$/,/'`
    191         set -o pipefail
    192186
    193187        # compare to refference header and count commas
Note: See TracChangeset for help on using the changeset viewer.