!!!!Beth's Reprocessing Shorthand!!!!


Notecard with: 

Seq# 	ObsID	Rootname	Source Name	

GBM File Number		Redshift	Galactic Column (/100)
_______________________________________________________________
_______________________________________________________________

Ciao321

harvard website

cd $DATA1

mkdir Sn_ID

cd Sn_ID

ftp cda.harvard.edu

get info

cxc.harvard.edu

get info

exit

tar -xvf package

tar -xvf Bthing

cd ID

mv *bias* primary/

mv *pbk* primary/

mkdir analysis

mkdir aux

cd analysis

_________________________________________

ciao321

reproc1_ciao321.perl rootname [20 min]

ls (bpix, evt2, pha2)

hetgrmfs.perl rootname

ls /home/ehstewar/cxcds_param/fullgarf_nocorr.par

idl

rootname='rootname'

hetgarfs_ciao321,rootname,/cdir

exit

source file_mkgarf  [30 min]

gzip *

cd ../

rm -fr primary

rm -fr secondary

rm -fr supporting

rm -fr oif.fits

rm -fr vv*

cd ../

rm -fr *.tar

cd $DATA1/gdb_backup

mkdir Sn_ID

cd Sn_ID

cp ../../Sn_ID/ID/analysis/*evt2* .

cp ../../Sn_ID/ID/analysis/*pha2* .

cp ../../Sn_ID/ID/analysis/*1_garf* .

gzip *

___________________________________________

oldftools

analysis subdir

ls *evt2*  [1]

ls *m1.rmf*  [2]

ls *p1.rmf*  [2]

ls *1_garf*  [8]

ls *nqe*1_garf*  [4]

idl

rootname='rootname'

mkhetgarchspec,rootname,/nqe,/clnfile

exit

ls -1 *.pha|wc -l   [52]

ls -1 *.rsp|wc -l   [48]

mkdir fits_spectra

cp *pha2* fits_spectra

mv *.pha fits_spectra

mv *.rsp fits_spectra

mv fits_spectra/*1.pha .

gzip fits_spectra/*

tar -cvf rootname_hetg_fitspec.tar fits_spectra

gzip *.tar

___________________________________________________

analysis subdir

mkdir lcxd

cd lcxd

idl

rootname='rootname'

$pwd

evtdir='address'

label1='SourceName [Sn, ID]'

mkhetglcxdjr,rootname,evtdir=evtdir,label1=label1

exit

source _mkgif

check gifs _lcxd

gzip *

cd ../

tar -cvf rootname_hetg_lc.tar lcxd/

tar -cvf rootanme_hetg_xdisp.tar lcxd/

gunzip lcxd/*

gzip rootname_hetg_lc.tar 

gzip rootname_hetg_xdisp.tar

________________________________________________________

mkdir ascii_spectra

cd ascii_spectra

gunzip ../*

cp ../*ID_*1_garf*.fits .

ls  [4]

idl

rootname='rootname'

$pwd

evtdir='address'

label1='SourceName [Sn, ID]'

redshift='redshift'

mkgdbasciispectra,rootname,evtdir=evtdir,redshift=redshift,label1=label1

exit

source _invspec_mkgif

check gif _ascii_spectra

gzip *

cd ../

tar -cvf rootname_hetg_asciispec.tar ascii_spectra/

gunzip ascii_spectra/*

gzip rootname_hetg_asciispec.tar

__________________________________________________________

ls -1 *1_garf.fits |wc -l   [8]

idl

rootname='rootname'

label1='SourceName [Sn, ID]'

mkgdbarfplots,rootname,label1=label1

exit

source _mkeffarea

mkdir effarea

mv *_ea_* effarea/

tar -cvf rootname_hetg_effarea.tar effarea

gzip rootname_hetg_effarea.tar

check gifs _effarea

_________________________________________________________

cd $DATA1

cd ../gdbfitting

tar -xvf gdbfit.tar

cp ../hetgreproc/Sn_ID/ID/analysis/fits_spectra/*meg*m1p1*0800*.* .

cp ../hetgreproc/Sn_ID/ID/analysis/fits_spectra/*heg*m1p1*0400*.* .

rm -fr *nqe*

gunzip *

_______________________________________________________________

xspec

sy ls *pha*

da megfile

Number x 2, rounded to 4 digits  [4th to last column of file for meg, 3rd to last for heg]

@gdbm#.xcm

newp 1 GC/100 -1

@gdb_meg_fit.xcm

@gdb_meg_clean_ufspec.pco

la t "SourceName [Sn, ID] MEG (-1, +1)"

cpd /xw

p

wenv rootname_meg_m1p1_b0800_uf_xe

hard /gif

$mv pgplot.gif rootname_meg_m1p1_uf_xe.gif

exit

flux 0.5 2.0    [flux 2 10 for heg]

Number x 1E11 rounded to 2 sigfigs   [2nd to last column of file for meg; last column for heg]

save mo rootname_meg_m1p1_b0800_uf_xe.xcm

exit

______________________________________________________________________

ls rootname*xe.xcm   [2]

ls rootname*xe.gif   [2]

analysis subdir

mkdir ufspec

cd ufspec

cp /data1/magnetar/ehstewar/gdbfitting/rootname*xe.xcm .

cp /data1/magnetar/ehstewar/gdbfitting/rootname*xe.gif .

xv /data1/magnetar/ehstewar/gdbfitting/rootname*xe.gif

Check off on to-do list!