world2pix¶
-
sitelle.calibration.world2pix(star_list_deg, wcs, dxmap=None, dymap=None)¶ Conversion from physical coordinates to pixel coordinates using WCS and eventually dxdymaps. It’s the mathematical inverse of
pix2world().This supplements the
astropy.wcs.WCS.all_world2pixby adding the possibility to use dxmaps and dymaps. For details seeorb.utils.astrometry.world2pix(). The resulting pixel positions are then filtered usingfilter_star_list().Parameters: - star_list_deg (2D
ndarray) – A 2D array containg RA/DEC positions of objects. The array should be column oriented ([[ra0, dec0], [ra1, dec1], [ra2, dec2], …]) - wcs (
WCS) – TheWCStransformation we want to use. See here for more details. - dxmap (2D
ndarray) – 2D array containing the astrometric third order correction on the x axis. If None (default value), the third order correction is not considered. - dymap (2D
ndarray) – 2D array containing the astrometric third order correction on the y axis. If None (default value), the third order correction is not considered.
Returns: A 2D array of the same dimension than
star_list_degwith pixel positions.Return type: - star_list_deg (2D