[AstroPy] Enquiry about origin change in wcs.all_world2pix

Partha Sarathi Pal parthasarathi.pal at gmail.com
Wed Sep 9 13:27:47 EDT 2020


Hi,
 I have a query about wcs.all_world2pix
I am trying to make a skymap plot. see the attached files.
I made the wcs projection. In wcs projection origin is taken as lower
left corner.
Now I want to plot some coordinates on skymap with wcs.all_world2pix
command.  see the magenta and white diamond in the plot.

starloc = wcs.all_world2pix([[Ra_obj, Dec_obj]],0,maxiter=20,
tolerance=1.0e-4, adaptive=False, detect_divergence=False,
quiet=False)

https://docs.astropy.org/en/stable/api/astropy.wcs.WCS.html#astropy.wcs.WCS.all_world2pix
see this link/ screen shot.
The origin is upper left in all_world2pix code.  In wcs plot or skymap
plot origin is lower left corner.

This can give wrong value of coordinates to pixels.
For this reason some standard sources are placed in different places.

Am I correct?
Partha

-- 
Partha Sarathi Pal
Room No- 106, Haibinhonglou - 18
School of Physics & Astrophysics
Sun Yat Sen University, Zhuhai Campus
Da Xue Lu, Tangjia, Zhuhai,
Guangdong, 519082, China
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-09-09 at 21.48.54.png
Type: image/png
Size: 173493 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/astropy/attachments/20200909/a29924db/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-09-09 at 21.43.47.png
Type: image/png
Size: 288971 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/astropy/attachments/20200909/a29924db/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-09-09 at 21.43.39.png
Type: image/png
Size: 147826 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/astropy/attachments/20200909/a29924db/attachment-0005.png>


More information about the AstroPy mailing list