[AstroPy] pyregion and astropy -- differences of pywcs and astropy.wcs
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.
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.
> On Tue, Oct 21, 2014 at 1:00 PM, <astropy-request at scipy.org
> <mailto:astropy-request at scipy.org>> wrote:
> 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
> 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
> If so, then the fix to pyregion is easy.
> 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
Science Software Branch
Space Telescope Science Institute
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy