scopesim.optics.image_plane_utils.sky_wcs_from_det_wcs

scopesim.optics.image_plane_utils.sky_wcs_from_det_wcs#

scopesim.optics.image_plane_utils.sky_wcs_from_det_wcs(det_wcs: WCS, pixel_scale: float, plate_scale: float, naxis=None) tuple[WCS, ndarray]#

Create celestial WCS from detector WCS using pixel and plate scales.

Parameters:
  • det_wcs (astropy.wcs.WCS) – Detector WCS.

  • pixel_scale (float) – Quantity or float (assumed to be arcsec / pixel).

  • plate_scale (float) – Quantity or float (assumed to be arcsec / mm).

  • naxis ((int, int), optional) – Shape of the image, usually NAXIS1 and NAXIS2. If the input WCS holds this information, the default None will use that. Otherwise not providing naxis will raise and error.

Returns:

  • sky_wcs (astropy.wcs.WCS) – Celestial WCS.

  • sky_naxis ((int, int)) – Shape of the image (NAXIS1, NAXIS2).