[AstroPy] Error in pixel to sky coordinate conversion with astropy.wcs
Josh Walawender
jmwalawender at gmail.com
Tue Apr 29 22:21:34 EDT 2014
Hi Angelo,
I ran in to the same problem in some python code I’m writing (needing to work with SCAMP generated distortion info). The easiest way to deal with it that I found was to rectify the image with SWarp (also from Emmanuel Bertin author of SCAMP, so they work together seamlessly). After that what’s left is an image with a simple CDn_m matrix which any software can handle.
http://www.astromatic.net/software/swarp
cheers,
Josh
On Apr 29, 2014, at 11:44 AM, Angelo Varlotta <avarlotta at cfa.harvard.edu> wrote:
> Hello,
> Thanks a lot for the help. I've installed PyAST on my computer and I'm now trying to understand how to implement the coordinate transformation I need. Is anyone familar with PyAST and if so, can anyone suggest the code to transform from pixel to sky coordinates and viceversa?
>
> Cheers,
> Angelo
>
> Kyle Barbary wrote:
>>
>> Here's more information that you'd probably want to know:
>>
>> https://github.com/astropy/astropy/issues/299
>>
>> The short answer is that the PVi_j keywords used by SCAMP are not supported by astropy.wcs, so there's not much you can do except to use a different tool.
>> - Kyle
>>
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140429/927554c8/attachment.html>
More information about the AstroPy
mailing list