scopesim.optics.image_plane_utils.header_from_list_of_xy

scopesim.optics.image_plane_utils.header_from_list_of_xy#

scopesim.optics.image_plane_utils.header_from_list_of_xy(x, y, pixel_scale, wcs_suffix='', arcsec=False)#

Make a header large enough to contain all x,y on-sky coordinates.

Parameters:
  • x (list of floats) – [deg, mm] List of sky coordinates to be bounded by the NAXISn keys

  • y (list of floats) – [deg, mm] List of sky coordinates to be bounded by the NAXISn keys

  • pixel_scale (float) – [deg, mm]

Returns:

hdr

Return type:

fits.Header