我在Python中将像素坐标fits文件转换为世界坐标。标题显示此fits文件位于RA-Dec坐标系中。我想把它转换成银河系的坐标。这是我尝试过的。在
from astropy import coordinates as coord
from astropy import units as u
c=coord.icrscoord(ra=wx,dec=wy,unit=(u.degree,u.degree))
c.galactic
AttributeError: 'module' object has no attribute 'icrscoord'
这不起作用。有什么建议吗?在
根据Astropy documentation,语法是:
相关问题 更多 >
编程相关推荐