I was converting a pixel coordinate fits file to world coordinates in Python. The header shows that this fits file is in RA-Dec coordinate system . I want to convert this to galactic coordinates. Here is what I've tried.
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'
This does not work. Any suggestions?