Creating level2events file and GTI

The LAXPC (LArge X-ray Proportional Counter) software is a collection of tools developed for analyzing data from the LAXPC instrument on board the AstroSat satellite. The software allows you to create level2events file and generate good time intervals (GTI) from the LAXPC data.
This tutorial will walk you through the steps of creating level2events file and GTI using LAXPC software in the `Analysis’ directory.

 $ laxpc_make_filelist

The above command use to generate output as 3 text files : eventfiles, filterfiles, and orb_filelist.

 $ laxpc_make_event eventfiles 
  File containing names of level 1 files: eventfiles

 Output Event file name: level2.event.fits
 No of file for laxpc 10,20,30 :           1           1           1
 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp1/modeEA/AS1G06_033T01_9000001116lxp1EA_level1.fits

 No of events read =      1666565

 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp2/modeEA/AS1G06_033T01_9000001116lxp2EA_level1.fits

 No of events read =      3333232

 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp3/modeEA/AS1G06_033T01_9000001116lxp3EA_level1.fits

 No of events read =      4999899

 Obtained energy information for laxpc           10  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx10/lx10cshm08v1.0.rmf

 Obtained energy information for laxpc           20  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx20/lx20cshp05v1.0.rmf

 Obtained energy information for laxpc           30  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx30/lx30cshp16rho30v1.0.rmf

 writing fits file     4999899
 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp1/modeEA/AS1G06_033T01_9000001116lxp1EA_level1.fits

No of events read =      1666565

 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp2/modeEA/AS1G06_033T01_9000001116lxp2EA_level1.fits

 No of events read =      3333232

 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp3/modeEA/AS1G06_033T01_9000001116lxp3EA_level1.fits

 No of events read =      4999899

 Obtained energy information for laxpc           10  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx10/lx10cshm08v1.0.rmf

 Obtained energy information for laxpc           20  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx20/lx20cshp05v1.0.rmf

 Obtained energy information for laxpc           30  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx30/lx30cshp16rho30v1.0.rmf

 writing fits file     4999899
 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp1/modeEA/AS1G06_033T01_9000001116lxp1EA_level1.fits

 no of events read =       837282
 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp2/modeEA/AS1G06_033T01_9000001116lxp2EA_level1.fits

 no of events read =      1551800
 Using level 1 event file: 
 /data2/divyar/assc_tutorails/20170328_G06_033T01_9000001116_level1/laxpc//08120/lxp3/modeEA/AS1G06_033T01_9000001116lxp3EA_level1.fits

 no of events read =      2104485
 Obtained energy information for laxpc           10  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx10/lx10cshm08v1.0.rmf

 Obtained energy information for laxpc           20  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx20/lx20cshp05v1.0.rmf

 Obtained energy information for laxpc           30  using /home/xray/software/astrosat/laxpc/LAXPCsoftware_Aug4/LAXPC_CAL/response/lx30/lx30cshp16rho30v1.0.rmf

 writing fits file     2104485
 writing response file names

The above command will generate an output named level2.event.fits from level1 downloaded data.

 $ laxpc_make_stdgti filterfiles
  Filter file List being used: filterfiles

This command will create a file nameed usergti.fits

A manually created usergti file in the form of txt file provided starting to end time can also be provided to get particular time-span result. This can be either in:

ascii giving start and stop times,
e.g. A file ‘usergti’ containing:
500.3 3000.1
3500.0 4550.34

or

a Fits GTI file with START and STOP columns

 $ gedit usergti.txt

In text file, data can be entered such as [START-time STOP-time]

To extract light curves and Power density spectra for any energy range, please provide the minimum and maximum energy values in the eneinput file such as [3 50].

 $ gedit eneinput

The default energy range is 3-80 keV if the file does not exist.