Hi,
Yeah, I believe TAN = gnomonic. And yes, I think the scale limits are effectively the scale at CRPIX. You may want to try setting the CRPIX-at-center option, which puts the reference point in the middle of your image. Then, yeah, as you say, it should be straight-forward to convert between different distortion model parameterizations. The SIP convention is described here,
https://fits.gsfc.nasa.gov/registry/sip.html
And yeah, if you want to undistort, you would do so to the TAN projection.
I haven't thought much about using different projections, or what parts of Astrometry.net we would have to change. These are multiple steps:
- during matching, we're taking 4-star mini-constellations and computing a 4-dimensional "shape code" for them, and matching those (in "shape space") to
pre-computed shapes of stars from the reference catalog. The shape code must be invariant to translation, rotation, and scale. As you've observed,
Astrometry.net doesn't work well for fish-eye projections because, I guess, that projection doesn't preserve angles in pixel space, so it's introducing a
shear to the shapes, and the shape codes are not shear-invariant. If we knew the angular scale of the image, I guess we could undo that, but... that's the point,
we don't know the angular scale :)
- after we have a match, then we construct a WCS projection based on that match, and then predict the locations of other stars and check how many of those
predictions are correct. This part would be easier to swap in a different projection.
cheers,
--dustin