ecpi.process.spex.io.outputs module

Section author: ECLAIRs GP team

SPEX products

Summary

Functions:

genfits_ecl_evs_soe

genfits_ecl_lcs_soe

genfits_ecl_sps_soe

save_lightcurve

write the light curve into a fits file ECL-LCS-S1

save_spectrum

write the spectrum into a fits file ECL-SPS-S1

Reference

genfits_ecl_evs_soe(mosa_info, dir_path, creator, proc_id='01')[source]
genfits_ecl_lcs_soe(mosa_info, dir_path, creator, proc_id='01')[source]
genfits_ecl_sps_soe(mosa_info, dir_path, creator, proc_id='01')[source]
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”.