scopesim.optics.image_plane_utils.val2pix

Contents

scopesim.optics.image_plane_utils.val2pix#

scopesim.optics.image_plane_utils.val2pix(header, a, b, wcs_suffix='')#

Return the pixel coordinates for real coordinates [deg, mm] from a WCS.

Parameters:
  • header (fits.Header)

  • a (float, list, array) – [deg, mm]

  • b (float, list, array) – [deg, mm]

Returns:

x, y – [pixel] Pixel coordinates as given by the Header WCS

Return type:

float, array