pix2world

sitelle.calibration.pix2world(star_list_pix, wcs, dxmap=None, dymap=None)

Conversion from pixel coordinates to physical coordinates using WCS and eventually dxdymaps. It’s the mathematical inverse of pix2world().

This supplements the astropy.wcs.WCS.all_pix2world by adding the possibility to use dxmaps and dymaps. For details see orb.utils.astrometry.pix2world(). The resulting pixel positions are then filtered using filter_star_list().

Parameters:
  • star_list_pix (ndarray) – A 2D array containg pixel positions of objects. The array should be column oriented ([[x0, y0], [x1, y1], [x2, y2], …])
  • wcs (WCS) – The WCS transformation than we want to use. See here for more details.
  • dxmap (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 (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_pix with RA/DEC positions.

Return type:

ndarray