scopesim.optics.image_plane_utils.det_wcs_from_sky_wcs#
- scopesim.optics.image_plane_utils.det_wcs_from_sky_wcs(sky_wcs: WCS, pixel_scale: float, plate_scale: float, naxis=None) tuple[WCS, ndarray]#
Create detector WCS from celestial WCS using pixel and plate scales.
- Parameters:
sky_wcs (astropy.wcs.WCS) – Celestial 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
NAXIS1andNAXIS2. If the input WCS holds this information, the default None will use that. Otherwise not providing naxis will raise and error.
- Returns:
det_wcs (astropy.wcs.WCS) – Detector WCS.
det_naxis ((int, int)) – Shape of the image (
NAXIS1,NAXIS2).