astrofrog/pyavm — pull request #19 by keflavich (2013-05-03 23:40:07+00:00)
Title: WCS fixes

There were issues with pyavm's treatment of `cd` (it was ignored). I've now done the simplest thing for interpreting `cd` when present:

`cd = [ [ cos(crota), -sin(crota) ] , [ sin(crota), cos(crota)] ] `

so

`self.Spatial.Rotation = np.arctan2(-wcs.wcs.cd[0,1],wcs.wcs.cd[0,0])`