wcs_from_coords#

astropop.astrometry.wcs_from_coords(x, y, ra, dec, plate_scale, north, flip=None)#

Create WCS based on coordinates and plate scale.

x, y: float, pixel coordinates in image ra, dec: float, sky coordinates

plate_scale in arcsec/pix

north direction can be angles (‘cw’, from top axis) or [‘right’, ‘top’, ‘left’, ‘bottom’] to angles [270, 0, 90, 180].

flip means if some direction is mirrored in image. Can be ‘ra’, ‘dec’, ‘all’ or None The standard coordinates are ra and dec in the following order, ccw: W - N - E - S

Coordinate values grow to E and N.

Problems: This algorith is not good for coordinates far from crpix. But is useful when you cannot solve with other algorithms. (Like just one star in field).