next up previous contents
Next: Timing Analysis without the Up: Alternative Timing Analysis Previous: Run ii_light


Merge the ii_light results from different Science Windows

If you want to merge in one file all the lightcurves provided by ii_light for a given source, you can use the lc_pick tool as shown in Section [*].

ii_light is a stand alone tool and does not update the proper files with its results. Even if you have run both the lightcurve tools (in whichever order), only the standard one called within the script (LCR step,ii_lc_extract) will have updated the proper files with its results (i.e. the swg_ibis.fits file). Thus if you run lc_pick to collect the lightcurves, only the standard ones will be selected. If you want to collect the results of ii_light, then you have to create an index file that points to all the ii_light produced lightcurves and then give this file as input to lc_pick, as shown below:

cd $REP_BASE_PROD/obs/
setenv run 0051
dal_create obj_name=all_lcr.fits template=ISGR-SRC.-LCR-IDX.tpl

foreach file (OGID/scw/$run*/lcr.fits)
idx_collect index="all_lcr.fits" template="ISGR-SRC.-LCR-IDX.tpl" element="$file"
end

lc_pick source='GRS 1758-258' attach=n \
group=all_lcr.fits+1 lc=GRS1758.iilight.lc.fits emin="20"  \
emax=40 instrument="ISGRI"

GRS1758.iilight.lc.fits contains the merged lightcurve of GRS 1758-258 in the 20-40keV band (that of course has to exist in the lcr.fits original files!). To display it, you can use the lcurve program of the FTOOLS package, as shown in Section [*].


next up previous contents
Next: Timing Analysis without the Up: Alternative Timing Analysis Previous: Run ii_light

2020-09-18