scopesim.optics.image_plane_utils.get_canvas_header

scopesim.optics.image_plane_utils.get_canvas_header#

scopesim.optics.image_plane_utils.get_canvas_header(hdu_or_table_list, pixel_scale=<Quantity 1. arcsec>)#

Generate a fits.Header with a WCS that covers everything in the FOV.

Parameters:
  • hdu_or_table_list (list) – A list of Tables and/or ImageHDU py_objects

  • pixel_scale (astropy.Quantity) – [arcsec] The pixel scale of the projection. Default in 1 arcsec

Returns:

header – A Header containing a WCS and NAXISn values to build an ImageHDU

Return type:

fits.Header