save_sky_images

save_sky_images(sky_images, file_path, obs_info_dict, creator='IMAG?', proc_id='01')[source]

save images in a fits file ECL-SKY-IMA

use common keywords

filename is ‘ECL-SKY-IMA-‘ + proc_id + ‘.fits’

file contains:
  • Intensity: cleaned sky count image
  • Variance: cleaned sky variance image
  • SNR: cleaned sky signal to noise ratio image
  • Exposure: initial sky Exposure image
  • Model: Added sources model images (for debug)
  • Initial Sky: Initial sky intensity image (for debug)

save also the models images in a fits file: see save_models

Parameters:
  • sky_images (list(SkyImages)) – list of sky images and models
  • file_path (string) – PATH to the directory where to write the file
  • obs_info_dict (dict) – dictionnary containing relevant variables for observation Includes following keys: tstart (type: float), tstop (type: float), energy_ranges (type: [[int, int]]) and attitude (type: [ra, dec, ori])
  • creator (string) – program that has generated the file. Default=’IMAG?’
  • proc_id (string) – id of the process. Default=”01”.