process_ccdlab()¶
- curvit.process_ccdlab(output=None, time_list=None, XY_integers=None, XY_fractions=None, flat_list=None, framecount_per_sec=28.7185)¶
Generate a Curvit compatible events list from CCDLAB files.
- Parameters:
output (file path) – The name of the output events list FITS file.
time_list (file path) – The name of the CCDLAB time list FITS file
XY_integers (file path) – The name of the CCDLAB XY integers FITS file
XY_fractions (file path) – The name of the CCDLAB XY fractions FITS file
flat_list (file path) – The name of the CCDLAB flat list FITS file
framecount_per_sec (float, optional) –
The framerate of the observation, with a default value of 28.7185 frames per second for 512 x 512 window mode. The most accurate way to get the framerate would be to take the value of (
1 / INT_TIME).INT_TIMEvalue can be found from the corresponding image header. Approximate values of framerate for different window modes of UVIT are given in the table below.window mode
frames per second
512 x 512
28.7
350 x 350
61
300 x 300
82
250 x 250
115
200 x 200
180
150 x 150
300
100 x 100
640
Note
It is essential to set the correct value of the framerate. Most UVIT observations are carried out in 512 x 512 window mode.
Warning
This function is new; please report if you find any bugs.
Example
>>> import curvit >>> process_ccdlab(output = 'output_events_list.fits', ... time_list = 'sample_TimeList.fits', ... XY_integers = 'sample_XYInts_List.fits', ... XY_fractions = 'sample_XYFrac_List.fits', ... flat_list = 'sample_FlatList.fits', ... framecount_per_sec = 28.7185)
The above script will generate a FITS table called
output_events_list.fits. You may then use it as input tocurveormakecurves.