title: How to convert RA-Dec coordinates to galactic coordinates in python
body: <p>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.</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>This does not work. Any suggestions?</p>