[AstroPy] pyregion and astropy -- differences of pywcs and astropy.wcs
Michael Droettboom
mdroe at stsci.edu
Wed Oct 22 09:59:10 EDT 2014
It seems you're sorted, but just to answer your original question: yes
-- world2pix is the new name for the deprecated sky2pix method.
Mike
On 10/21/2014 01:05 PM, Slavin, Jonathan wrote:
> 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
> <mailto: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 <mailto:jslavin at cfa.harvard.edu> 60 Garden
> Street, MS 83
> phone: (617) 496-7981 Cambridge, MA 02138-1516
> fax: (617) 496-7577 USA
> ________________________________________________________
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
http://www.droettboom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20141022/3f4f9bad/attachment.html>
More information about the AstroPy
mailing list