save_sky_images

save_sky_images(sky_images, file_path, tstart, tstop, energy_ranges, 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
  • tstart (float) – start time of the observation in s from mjdref
  • tstop (float) – end time of the observation in s from mjdref
  • energy_ranges ([[int, int]]) – energy ranges (in PI) of the images [[low_energy, high_energy],[]]
  • creator (string) – program that has generated the file. Default=’IMAG?’
  • proc_id (string) – id of the process. Default=”01”.