ecpi.process.spex.io.outputs module
Section author: ECLAIRs GP team
SPEX products
Summary
Functions:
write the light curve into a fits file ECL-LCS-S1 |
|
write the spectrum into a fits file ECL-SPS-S1 |
Reference
- save_lightcurve(file_path, light_curve_table, tstart, tstop, attitude, creator='SPEX?', proc_id='01')[source]
write the light curve into a fits file ECL-LCS-S1
common keywords are included
filename is ‘ECL-LCS-S1-‘ + proc_id + ‘.fits’
- Parameters
file_path (string) – PATH to the directory where to write the file
light_curve_table (astropy.table.Table) – light curve of the source
tstart (float) – start time of the observation in s from mjdref
tstop (float) – end time of the observation in s from mjdref
attitude ([float, float, float]) – [ra, dec, ori] in degrees
creator (string) – program that has generated the file. Default=’SPEX?’
proc_id (string) – id of the process. Default=”01”.
- save_spectrum(file_path, spectrum, tstart, tstop, attitude, creator='SPEX?', proc_id='01')[source]
write the spectrum into a fits file ECL-SPS-S1
common keywords are included
filename is ‘ECL-SPS-S1-‘ + proc_id + ‘.fits’
- Parameters
file_path (string) – PATH to the directory where to write the file
spectrum (astropy.table.Table) – spectrum of the source
tstart (float) – start time of the observation in s from mjdref
tstop (float) – end time of the observation in s from mjdref
attitude ([float, float, float]) – [ra, dec, ori] in degrees
creator (string) – program that has generated the file. Default=’SPEX?’
proc_id (string) – id of the process. Default=”01”.