[AstroPy] pyregion and astropy -- differences of pywcs and astropy.wcs

Slavin, Jonathan jslavin at cfa.harvard.edu
Tue Oct 21 13:05:50 EDT 2014


​This problem has been fixed in the most recent version of pyregion on
github, but somehow that version was not correctly copied to pypi -- so my
pip install of it had the old version of wcs_helper.py despite the version
no. indicating it was up-to-date.

Jon​

On Tue, Oct 21, 2014 at 1:00 PM, <astropy-request at scipy.org> wrote:

> Hi,
>
> I've run into an issue with using pyregion that seems to be related to
> differences in the API for pywcs vs. astropy.wcs.  This may be discussed
> somewhere, but I didn't run across it.  The problem is that pyregion wants
> to invoke a wcs_sky2pix method for an astropy.wcs.wcs.WCS object.
> Apparently pywcs.WCS objects have this method.  So I'm wondering, is the
> pywcs wcs_sky2pix method the same as the astropy.wcs method wcs_world2pix?
> If so, then the fix to pyregion is easy.
>
> Regards,
> Jon
>




-- 
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
fax: (617) 496-7577            USA
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20141021/79f15b64/attachment.html>


More information about the AstroPy mailing list