#! /usr/bin/sh #### # 990223 dph - modifying as per: # ASC Data System, version: R4CU1C Sunday, February 7, 1999 # MARX version: 2.20.p4 # marx2fits v2.20.p4 #### echo Starting L2 at `date` # Bin L1.5 into L2 with tgextract, using default params. # The file to be processed is the first command-line argument. # The file should be the output of tg_resolve_events ############################################################ # # This is a test script. It does no error checking, # and hard-codes some filenames. # ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ #//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ #\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\// # # R E Q U I R E D F I L E S : # # no ref data. #//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ #\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\// ########################################## # get the filename to process. (minimal checking) if [ $# = 0 ] then echo Usage: `basename $0` L1.5_FITS_event_file echo "You must specify a Level 1.5 filename!" exit 1 fi fname=$1 L15name=`basename $fname .fits`_L1a.fits outname=`basename $fname .fits`_pha2.fits echo tgextract $L15name none pha2 $outname 1 header_value default none none time tgextract $L15name none pha2 $outname 1 header_value default none none echo Finished L2 at `date`