Pipeline Modules and Usage
This section provides complete usage of each module of the pipeline listing all the available parameters. Hidden optional parameters are listed in square brackets.
1. cztpipeline
Purpose
This script is used to run all modules of CZTI pipeline together for the requires stages of the pipeline.
Parameters
- entrystage : Start stage of cztpipeline (1-3)
- exitstage : End stage of cztpipeline (1-3)
- l1dir : Level-2 directory path
- usergtifile : User gti file to be used for additional filtering of data. Input to cztgtigen
- rasrc : RA of source in decimal degrees. Input to cztbindata
- decsrc : DEC of source in decimal degrees. If RA and DEC are zero, the source coordinates from MKF header is used. Input to cztbindata
- outputtype : Output to be generated by cztbindata. (spec/lc/both)
- maskWeight : Whether to apply mask-weights (Y/N) to generate background subtracted spectrum/light curve in cztbindata
- timebinsize : Time bin size in seconds for light curve. Input to cztbindata
- emin : Minimum energy for light curve (keV) for cztbindata
- emax : Maximum energy for light curve (keV) for cztbindata
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
- [debug] : Whether to generate debug information for modules (Y/N). Default is no
- [remintermedfile] : Whether to remove intermediate files generated by different modules(Y/N). Default is yes.
- [evtselalgo] : Event selection algorithm to be employed in stage 2 (default/generalized). Default value is ‘default’
- [suffix] : Optional suffix to be added to all output file names. This can be used when startstage is 2 or 3 and it would expect input files to have standard names.
- [prefix] : Optional prefix to be added to all output file names. This will be useful only if startstage is 1 as it expects the same prefix for all level-2 files.
- [nPackets] : Number of packets to be read into buffer at once. This parameter needs to be reduced if there is insufficient memory on the system. Default is 100000.
- [BigEndian] : Whether the data is bigendian (Y/N). Default is yes
- [outbunchevtfile] : Name of optional output event file with bunch events. Default is “-” which does not produce this file
- [livetime binsize] : Time binsize in seconds for which livetimes have to be recorded. Default is 1.
- [bunchdeftime] : Bunch definition time in micro seconds. Default is 30.
- [bunch length thresh]: Bunch length threshold. Default is 20
- [skipT1] : Time parameter skipT1 in seconds. Default is 0
- [skipT2] : Time parameter skipT1 in seconds. Default is 1e-3
- [skipT3] : Time parameter skipT1 in seconds. Default is 1e-3
- [buffer] : Number of events to be read into buffer. This needs to be reduced if if there is insufficient memory on the system. Default is 100000000
- [mkfthresholdfile] : Parameter threshold file with ranges of various MKF parameters to be used in GTI selection. Recommended threholds are given in “$as1czt/config/mkfThresholds.txt”, which is the default. The threshold file has four columns. First column is the name of the MKF parameter, second column is a boolean flag (0/1) to say if any filtering based on this parameter is required. The third and fourth columns provide minimum and maximum values of the parameter to be included in GTI. ”-” in these two columns mean that no lower (or upper) limit will be applied. It is required to have entries for all 67 parameters in the threshold file and the filtering criteria can be modified by changing the values of the last three columns as required.
- [minexposure] : Minimum exposure of each GTI interval. GTIs with stop-start less than this value are excluded from the output GTI. This is meant to exclude events from frames where event saturation occured. Default value is 1 second.
- [gtitype] : Whether to use individual quadrant GTI (quad) or use the common GTI for all quadrants (common). Default is quad
- [writedblevt] : Whether to generate double pixel event list (Y/N) by cztpixclean in case of default evtselalgo and by czteventsep in case of generalized evtselalgo. Default is No
- [nsigma] : N-sigma value to be used for identifying gross noisy pixels by iterative N-sigma clipping. Default is 5.
- [det tbinsize] : Time binsize for generating detector light curve for identifying flickering detectors. Default is 1 sec.
- [pix tbinsize] : Time binsize for generating pixel light curve for identifying flickering detectors. Default is 1 sec.
- [det count thresh] : Count threshold in a detector within det tbinsize for considering as a flickering detector. Default is 25
- [pix count thresh] : Count threshold in a pixel within pix tbinsize for considering as a flickering pixel. Default is 2
- [applyLLD] : Whether to apply LLD cuts to events (Y/N). Default is yes.
- [applyULD] : Whether to apply ULD cuts to events (Y/N). Default is yes.
- [timegcor] : Whether to apply time dependant gain correction factor(Y/N). Default is yes.
- [alphaval] : Alpha values to be accepted (1/0). Default is 0 which rejects alpha-tagged events
- [vetorange] : Veto Range/Ranges to accept (0-127). Default is 0 which rejects all veto-tagged events.
- [badpixThreshold] : Threshold of bad pixel quality flag to be applied for generating DPI, spectrum and light curve. Default is 0 which selects only good pixel events.
- [quadsToProcess] : Quadrants to be processed. Default is ”-” which uses all four quadrants of CZTI.
- [timerange] : Time range to be used to generate DPI. Default is ”-” which uses entire
observation
- [ebins] : Energy range to be used for DPI generation. Default is “-”
- [algorithm] : Which imaging algorithm to be used (fft/balcc). Default is balcc
- [oversamplingfactor] : Oversampling factor for dpi and mask. Default is 16
- [generate eventfile] : Whether to generate event file with weight column (Y/N). Default is no.
- [genresp] : Whether to generate response matrix for spectrum (Y/N). Default is yes.
- [dogrouping] : Whether do default grouping for mask-weighted spectrum (Y/N). Default is yes.
- [grpfile] : Text file with grouping of spectral channels, same as the input to grppha. Default is ”-”. If a file is provided and dogrouping==yes, grouping flags are set according to the text file input, otherwise default grouping is done. Not available in present version.
- [deltatx] : Additional shift in thetax to be applied in degrees. Default is 0. Only for use by Instrument team.
- [deltaty] : Additional shift in thetay to be applied in degrees. Default is 0. Only for use by Instrument team.
- [gofile] : CALDB gain file. Default is ‘CALDB’
- [caldbbadpix] : CALDB bad pixel file name. Default is ‘CALDB’
- [maskfile] : CALDB maskpattern file. Default is ‘CALDB’
- [shadowlib]: CALDB shadow library file. Default is ‘CALDB’
- [eboundsfile]: CALDB ebounds file. Default is ‘CALDB’
- [camgeomfile]: CALDB camera geometry file. Default is ‘CALDB’
- [effareafile]: CALDB effective area file. Default is ‘CALDB’
- [bkgscalfile]: CALDB bkg spectra scale file. Default is ‘CALDB’
- [lldfile] : CALDB LLD file. Default is ‘CALDB’
- [uldfile] : CALDB ULD file. Default is ‘CALDB’
- [respparfile] : CALDB response parameter file. Default is ‘CALDB’
- [pixrespfile] : CALDB pixel response file. Default is ‘CALDB’
- [gaincorfile] : CALDB gaincor file. Default is ‘CALDB’
- [effareacorfile] : CALDB effective area correction file. Default is ‘CALDB’
- [syserrfile] : CALDB systematic error file. Default is ‘CALDB’
2. cztscience2event
Purpose
This module reads the level 1 science data file and decodes the data packets into events and generate the raw event file. Timestamps for events are also assigned. Relevant housekeeping information present in headers and detector temperature information present in modeSS data are also decoded and written to output files.
Parameters
- infile : Input level-1 science data file. It can be modeM0 or modeSS
- TCTfile : Input time calibration table file
- outfile : Name of output event file
- hdrInfoFile : Name of output event header information file
- bunchfile : Name of output bunch file
- [nPackets] : Number of packets to be read into buffer at once. This parameter needs to be reduced if there is insufficient memory on the system. Default is 100000.
- [BigEndian] : Whether the data is bigendian (Y/N). Default is yes
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
3. cztbunchclean
Purpose
This module identifies multi-hit events bunched in time due to charged particles and removes those events. It also keeps track of the dead time caused by this and records this in an output live time file generated along with the output event file.
Parameters
- infile : Input event file generated by cztscience2event
- bunchfile : Input bunch file generated by cztscience2event
- outfile : Name of output event file
- livetimefile : Name of output livetime file
- outbunchfile : Name of output bunch file
- [outbunchevtfile] : Name of optional output event file with bunch events. Default is"-" which does not produce this file
- [livetime binsize] : Time binsize for which livetimes have to be recorded. Default is 1 second.
- [bunchdeftime] : Bunch definition time in micro seconds. Default is 30.
- [bunch length thresh]: Bunch length threshold. Default is 20
- [skipT1] : Time parameter skipT1 in seconds. Default is 0
- [skipT2] : Time parameter skipT1 in seconds. Default is 1e-3
- [skipT3] : Time parameter skipT1 in seconds. Default is 1e-3
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
4. cztpha2energy
Purpose
This module uses temperature dependent pixel wise gain values from ground calibration to estimate the nominal energy of the incident photon from the recorded PHA, and expresses it on a Pulse Invariant and Pixel Invariant scale, called a PI channel value. It adds two columns to the event file named Energy and PI.
Parameters
- infile : Input event file generated by cztpha2energy
- outfile : Name of output event file
- tempextfile : Input level-2 mode SS file generated by cztscience2event having temperature extension
- [eboundsfile] : Name of Ebounds file defining PI channels. Default is ’CALDB’
- [gofile] : Name of gain file. Default is ’CALDB’
- [buffer] : Number of events to be read into buffer. This needs to be reduced if if there is insufficient memory on the system. Default is 100000000
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
5. cztgtigen
Purpose
This module creates the good time interval (GTI) file for each quadrant of CZTI based on thresholds on various parameters given as input, as well as the default GTI present in the event file that accounts for data gaps etc. It also has provision to accept user defined GTIs for specific analysis cases.
Parameters
- eventfile : Input event file generated by cztpha2energy (or by cztnoisypixclean with generalized event selection algorithm)
- mkffile : Input MKF (makefilter) file
- thresholdfile : Parameter threshold file with ranges of various MKF parameters to be used in GTI selection. Recommended threholds are given in ”$as1czt/config/mkfThresholds.txt”, which is the default. The threshold file has four columns. First column is the name of the MKF parameter, second column is a boolean flag (0/1) to say if any filtering based on this parameter is required. The third and fourth columns provide minimum and maximum values of the parameter to be included in GTI. ”-” in these two columns mean that no lower (or upper) limit will be applied. It is required to have entries for all 67 parameters in the threshold file and the filtering criteria can be modified by changing the values of the last three columns as required.
- outfile : Name of the output GTI file
- usergtifile : Option user GTI file in text format. Default is ”-” which means no user GTI is considered. The GTI text file should have two columns with start and stop times in each row. Times should be in AstroSat UTC seconds (seconds since 2010-01-01 0 UTC).
- [minexposure] : Minimum exposure of each GTI interval. GTIs with stop-start less than this value are excluded from the output GTI. This is meant to exclude events from frames where event saturation occured. Default value is 1 second.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
6. cztgaas
Purpose
This module computes the time dependent pointing direction of CZTI axes as well as the average value required for assigning coordinates for images.
Parameters
- infile : Input event file generated by cztpha2energy
- mkffile : Input MKF (makefilter) file
- outAspectfile : Name of output aspect file
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
7. cztdatasel
Purpose
This pipeline module filters the events in the input event file based on the GTI file provived and generates an output event file with the selected events.
Parameters
- infile : Input event file generated by cztpha2energy (or by cztnoisypixclean with generalized event selection algorithm)
- gtifile : GTI file generated by cztgtigen with any optional user GTI
- outfile : Name of output event file
- [gtitype] : Whether to use individual quadrant GTI (quad) or use the common GTI for all quadrants (common). Default is quad
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
8. cztpixclean
Purpose
This pipeline module filters the event file for noisy pixels and detectors. It identified gross noisy pixels and removes events from those pixels and also removes events from flickering pixels and detectors for those specific periods. A bad pixel file with the combined list of bad pixels identified by this module and that from CALDB is also written out along with the cleaned event file.
Parameters
- infile : Input event file generated by cztdatasel
- inlivetimefile : Input livetime file generated by cztbunchclean
- outfile1 : Name of output single event file outlivetimefile : Name of output livetime file
- badpixfile : Name of output badpix file
- [writedblevt] : Whether to generate double pixel event list (Y/N). Default is No
- [outfile2] : Name of optional double event file. Default is default.dblevt
- [nsigma] : N-sigma value to be used for identifying gross noisy pixels by iterative N-sigma clipping. Default is 5.
- [det tbinsize] : Time binsize for generating detector light curve for identifying flickering detectors. Default is 1 sec.
- [pix tbinsize] : Time binsize for generating pixel light curve for identifying flickering detectors. Default is 1 sec.
- [det count thresh] : Count threshold in a detector within det tbinsize for considering as a flickering detector. Default is 25
- [pix count thresh] : Count threshold in a pixel within pix tbinsize for considering as a flickering pixel. Default is 2
- [caldbbadpix] : CALDB bad pixel file name. Default is ’CALDB’
9. cztflagbadpix
Purpose
This module combines bad pixel information from multiple sources, if required. It reads a list of bad pixel files and writes out a single bad pixel file combining the information from all of them. A list of all bad pixels mentioned in the input files is made, and the unique elements in the list are written out.
Parameters
- nbadpixFiles : Number of input badpixel files to be read
- badpixfile : Input bad pixel file name
- outfile : Name of output bad pixel file
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
- [debug] : Whether to generate debug information (Y/N). Default is no.
10. cztevtencor
Purpose
This module applies additional gain correction on the event PI values based on the time independant and time-dependant correction factors obtained from analysis of in-flight data. It also optinally removes events below LLD and above ULD.
Parameters
- infile : Input event file with energy and PI columns.
- outfile : Name of output event file
- [gaincorfile] : CALDB gaincor file with additional gain correction factors. Default is ’CALDB’
- [lldfile] : CALDB LLD file. Default is ’CALDB’
- [uldfile] : CALDB ULD file. Default is ’CALDB’
- [applylld] : Whether to apply LLD cuts to events (Y/N). Default is yes.
- [applyuld] : Whether to apply ULD cuts to events (Y/N). Default is yes.
- [timegcor] : Whether to apply time dependant gain correction factor(Y/N). Default is yes.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
11. cztevtclean
Purpose
This module provides the functionality to select/reject alpha and veto-tagged events in various combinations according to user-supplied choices.
Parameters
- infile : Input event file generated by cztpixclean (or by czteventsep with generalized event selection algorithm)
- outfile : Name of output event file
- [alphaval] : Alpha values to be accepted (1/0). Default is 0 which rejects alpha-tagged events
- [vetorange] : Veto Range/Ranges to accept (0-127). Default is 0 which rejects all veto-tagged events.
- [isdoubleEvent] : Whether the input file is a double event (Y/N). Default is no. If the-input file is a double event, this parameter should be set to yes to get correct results.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
12. cztdpigen
Purpose
This module generates detector plane histogram (DPH) and detector plane image (DPI) from clean event file. DPI is obtained by applying effective area correction on the DPH.
Parameters
- infile : Input clean event file generated by cztevtclean
- badpixFile : Input bad pixel file generated by cztpixclean
- outDPHfile : Name of output DPH file
- outDPIfile : Name of output DPI file
- [badpixThreshold] : Threshold of bad pixel quality flag to be applied for generationg of DPI. Default is 0 which selects only good pixel events.
- [effAreafile] : CALDB effective area file. Default is ’CALDB’
- [quadsToProcess] : Quadrants to be processed. Default is ”-” which uses all four quadrants of CZTI.
- [timerange] : Time range to be used to generate DPI. Default is ”-” which uses entire observation
- [ebins] : Energy range to be used. Default is “-”
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
13. cztimage
Purpose
This module generates sky images from the DPI using Balanced cross-correlation or FFT techniques.
Parameters
- infile : Input DPI file generated by cztdpigen
- aspectfileQ0 : Average aspect file for Q0 generated by cztgaas
- aspectfileQ1 : Average aspect file for Q1 generated by cztgaas
- aspectfileQ2 : Average aspect file for Q2 generated by cztgaas
- aspectfileQ3 : Average aspect file for Q3 generated by cztgaas
- outImgFile : Name of output image file
- [algorithm] : Which imaging algorithm to be used (fft/balcc). Default is balcc
- [intype] : Input file type (DPI/DPH). Default is DPI.
- [oversamplingfactor] : Oversampling factor for dpi and mask. Default is 16
- [quadsToProcess] : Qudrant IDs to be processed. Default is ”-” which processes all quadrants.
- [maskfile] : CALDB mask pattern file. Default is ’CALDB’
- [shadowlib] : CALDB shadow library file. Default is ’CALDB’
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
- [debug] : Whether to generate debug information (Y/N). Default is no. If set to yes when imaging algorithm is balcc, images for each detector module are generated.
14. cztbindata
Purpose
This module generates background subtracted sources spectrum (with response matrix) and light curves for a given source coordinates within the FOV by using mask-weighting tecnique. There is also option to generate total spectrum or light curve including background.
Parameters
- inevtfile : Input clean event file generated by cztevtclean
- mkffile : Input MKF file
- badpixfile : Input badpix file generated by cztpixclean
- livetimefile : Input livetime file generated by cztpixclean
- outfile : Base name of the output files
- outputtype : Output type (lc, spec, both)
- maskWeight : Whether to apply mask-weights (Y/N) to generate background subtracted spectrum/light curve
- rasrc : RA of source in decimal degrees.
- decsrc : DEC of source in decimal degrees. If RA and DEC are zero, the source coordinates from MKF header is used.
- timebinsize : Time bin size for light curve in seconds
- emin : Minimum energy for light curve (keV)
- emax : Maximum energy for light curve (keV)
- outevtfile : Name of optional output event file with mask-weights. Generated only if generate eventfile is set to yes.
- [badpixThreshold] : Bad pixel quality flag threshold to be applied (0-4). Default is 0.
- [quadsToProcess] : Quadrants to be processed. Default is “-”
- [generate eventfile] : Whether to generate event file with weight column (Y/N). Default is no.
- [genresp] : Whether to generate response matrix for spectrum (Y/N). Default is yes.
- [dogrouping] : Whether do default grouping for mask-weighted spectrum (Y/N). Default is yes.
- [grpfile] : Text file with grouping of spectral channels, same as the input to grppha. Default is “-”. If a file is provided and dogrouping==yes, grouping flags are set according to the text file input, otherwise default grouping is done. Not available in present version.
- [applyLLD] : Whether to apply LLD cut for non-maskwt spec(Y/N). Default is Yes
- [applyULD] : Whether to apply ULD cut for non-maskwt spec(Y/N). Default is Yes
- [deltatx] : Additional shift in thetax to be applied in degrees. Default is 0.
- [deltaty] : Additional shift in thetay to be applied in degrees. Default is 0.
- [maskfile] : CALDB maskpattern file. Default is ’CALDB’
- [eboundsfile] : CALDB ebounds file. Default is ’CALDB’
- [camgeomfile] : CALDB camera geometry file. Default is ’CALDB’
- [effareafile] : CALDB effective area file. Default is ’CALDB’
- [bkgscalfile] : CALDB bkg spectra scale file. Default is ’CALDB’
- [lldfile] : CALDB LLD file. Default is ’CALDB’
- [uldfile] : CALDB ULD file. Default is ’CALDB’
- [respparfile] : CALDB response parameter file. Default is ’CALDB’
- [pixrespfile] : CALDB pixel response file. Default is ’CALDB’
- [gaincorfile] : CALDB gaincor file. Default is ’CALDB’
- [effareacorfile] : CALDB effective area correction file. Default is ’CALDB’
- [syserrfile] : CALDB systematic error file. Default is ’CALDB’
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
- [debug] : Whether to generate debug information (Y/N). Default is no. If set to yes spectra for each detector module is generated.
15. cztaddspec
Purpose
This module provides functionality to add multiple CZTI spectra together. It is possible to add different quadrant spectra of one observation or add each quadrant spectra of multiple observations.
Parameters
- listfile : Text file with list of input spectrum files
- specfile : Name of output spectrum file
- addresp : Whether to create response file along with added spectrum (Y/N).
- addexposure : Whether to add exposure times(Y/N), which is applicable when multiple observations of same detector is added. For adding spectra of four quadrants of same observation, set this to No
- [respfile] : Name of output response file. Default is ”default” which geneartes response having same basename as the output spectrum file
- [dogrouping] : Whether to apply default grouping to output spectrum file (Y/N). Default is yes.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
16. cztnoisypixclean
Purpose
This module is part of generalized event selection algorithm that may be used instead of cztpixclean module in default pipeline. It identifies the gross noisy pixels and removes all the events from such pixels. It carried out iterative 5-sigma clipping of noisy pixels, seperately for nominal gain pixels and low gain pixels.
Parameters
- infile : Input event file generated by cztpha2energy
- outfile : Name of output event file
- outbadpixfile : Name of output badpix file
- [caldb badpix file] : CALDB badpixel file. Default is ’CALDB’.
- [thresholdfile] : Text file with threshold parameters. Default file with recommended values is “$as1czt/config/noiseReductionThreshold.txt”.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
17. cztsuperbunchclean
Purpose
This module is part of generalized event selection algorithm that may be used instead of cztpixclean module in default pipeline. It is used to identify post-bunch noises that span different modules. It identifies the bunches with large number of events which causes post bunch noises along the path of the interacted particle. These events are identified by an algorithm (outlined in Paul et al 2021), and those GTIs are removed from further analysis. The livetime file is updated with the newly updated GTI. The threshold file contains the recommended threshold values given in Ratheesh et al 2021b.
Parameters
- infile : Input event file generated by cztdatasel
- inbunchfile : Input Bunch file generated by cztbunchclean
- inlivetimefile : Input livetime file generated by cztbunchclean
- outfile : Name of output event file
- outlivetimefile : Name of output livetime file
- [thresholdfile] : Text file with threshold parameters. Default file with recommended values is “$as1czt/config/superBunchCleanThreshold.txt”.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
18. cztheavybunchclean
Purpose
This module is part of generalized event selection algorithm that may be used instead of cztpixclean module in default pipeline. It removes the post bunch noises due to cosmic particles from the genuine X-ray events, based on their properties which differ from the latter. The threshold file contains recommended threshold values given in Ratheesh et al 2021b.
Parameters
- infile : Input event file generated by cztsuperbunchclean
- inbunchfile : Input bunch file generated by cztbunchclean
- outfile : Name of output event file
- [thresholdfile] : Text file with threshold parameters. Default file with recommended values is “$as1czt/config/heavyBunchThreshold.txt”.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
19. cztflickpixclean
Purpose
This module is part of generalized event selection algorithm that may be used instead of cztpixclean module in default pipeline. It identifies and flags all the flickering pixels (or noisy pixels at shorter time scales). The identified flickering pixels are updated in the badpix file. It further identfies and removes events from those pixels having counts beyond the Poissonian limit using the DPH at 1 s and 10 s time scales.
Parameters
- infile : Input event file generated by cztheavybunchclean
- inbadpixfile : Input badpix file gnerated by cztnoisypixclean
- outfile : Name of output event file
- outbadpixfile : Name of output badpixel file
- [thresholdfile] : Text file with threshold parameters. Default file with recommended values is “$as1czt/config/flickPixThreshold.txt”.
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes
20. czteventsep
Purpose
This module is part of generalized event selection algorithm that may be used instead of cztpixclean module in default pipeline. It seperates single and double events in an event file.
Parameters
- infile : Input event file generated by cztflickpixclean
- outfile single : Name of output single event file
- [writedblevt] : Whether to generate double pixel event list (Y/N). Default is No
- [outfile double] : Name of optional output double event file. Default is default.dblevt
- [clobber] : Whether to overwrite existing output files (Y/N). Default is yes
- [history] : Whether to write history keywords in fits file (Y/N). Default is yes