Commit 4f5aab9e authored by teresa.bister's avatar teresa.bister
Browse files

[skymap] small bugfix in equatorial coordinate system

parent 9ca1cbe5
Pipeline #279870 failed with stages
......@@ -62,7 +62,7 @@ def scatter(v, c=None, cblabel='log$_{10}$(Energy / eV)', opath=None, fig=None,
coord_system = kwargs.pop('coord_system', 'gal')
if coord_system == 'eq':
lons, lats = coord.gal2eq(coord.ang2vec(lons, lats))
lons, lats = coord.vec2ang(coord.gal2eq(coord.ang2vec(lons, lats)))
# mimic astronomy convention: positive longitudes evolving to the left with respect to GC
lons = -lons
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment