Skip to content

Commit

Permalink
Fix to make plot_map.py show galactic coordinates in the standard way…
Browse files Browse the repository at this point in the history
… for all-sky projections.
  • Loading branch information
HERA-Observer committed Apr 9, 2014
1 parent 08ef2fb commit b8c5315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/plot_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def imshow(self, *args, **kwargs):
h = nh
h.set_interpol(opts.interpolation != 'nearest')

crd = a.coord.radec2eq(n.array([lons.flatten(), lats.flatten()]))
if opts.osys == 'eq': crd = a.coord.radec2eq(n.array([lons.flatten(), lats.flatten()]))
else: crd = a.coord.radec2eq(n.array([-lons.flatten(), lats.flatten()]))
m = a.coord.convert_m(opts.osys, opts.isys,
iepoch=opts.oepoch, oepoch=opts.iepoch)
x,y,z = n.dot(m, crd)
Expand Down

0 comments on commit b8c5315

Please sign in to comment.