#! /bin/sh # This is the LHEA perl script: /cvmfs/extras-fp7.egi.eu/extras/heasoft/ftools/x86_64-unknown-linux-gnu-libc2.19-0/bin/rosbary # The purpose of this special block is to make this script work with # the user's local perl, regardless of where that perl is installed. # The variable LHEAPERL is set by the initialization script to # point to the local perl installation. #------------------------------------------------------------------------------- eval ' if [ "x$LHEAPERL" = x ]; then echo "Please run standard LHEA initialization before attempting to run /cvmfs/extras-fp7.egi.eu/extras/heasoft/ftools/x86_64-unknown-linux-gnu-libc2.19-0/bin/rosbary." exit 3 elif [ "$LHEAPERL" = noperl ]; then echo "During LHEA initialization, no acceptable version of Perl was found." echo "Cannot execute script /cvmfs/extras-fp7.egi.eu/extras/heasoft/ftools/x86_64-unknown-linux-gnu-libc2.19-0/bin/rosbary." exit 3 elif [ `$LHEAPERL -v < /dev/null 2> /dev/null | grep -ic "perl"` -eq 0 ]; then echo "LHEAPERL variable does not point to a usable perl." exit 3 else # Force Perl into 32-bit mode (to match the binaries) if necessary: if [ "x$HD_BUILD_ARCH_32_BIT" = xyes ]; then if [ `$LHEAPERL -V 2> /dev/null | grep -ic "USE_64_BIT"` -ne 0 ]; then VERSIONER_PERL_PREFER_32_BIT=yes export VERSIONER_PERL_PREFER_32_BIT fi fi exec $LHEAPERL -x $0 ${1+"$@"} fi ' if(0); # Do not delete anything above this comment from an installed LHEA script! #------------------------------------------------------------------------------- #!/usr1/local/bin/perl # # script to run bct and abc together # # Emily A. Greene 12/2/94 # HEASARC NASA/GSFC/HSTX # # from the original c-shell script # 2/17/95 Documentation moved from rosbary.txt file into script by LE Brown # # Basic starting stuff use Getopt::Std; #============================================================# # # See if there are any flags: # getopts('h'); if (defined $opt_h) { print <; chop $orb_fil; print " Output barycenter filename\n"; $bc_fil = ; chop $bc_fil; print " Input events filename[ext#]\n"; $in_fil = ; chop $in_fil; print " Output events filename:\n"; $ou_fil = ; chop $ou_fil; print " RA string (hh mm ss.s or degrees, epoch 2000):\n"; $ra_str = ; chop $ra_str; print " DEC string (dd mm ss.s or degrees, epoch 2000):\n"; $dec_str = ; chop $dec_str; @result = &runcom("bct infile=$orb_fil outfile=$bc_fil ra=$ra_str dec=$dec_str"); @result = &runcom("abc infile=$in_fil bcfile=$bc_fil outfile=$ou_fil ra=$ra_str dec=$dec_str");