save_spectrum¶
-
save_spectrum(file_path, spectrum, tstart, tstop, attitude, creator='SOEX?', 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=’SOEX?’
- proc_id (string) – id of the process. Default=”01”.