Created
October 17, 2019 14:18
-
-
Save cdeil/7d8f1e26444d2479e1989f837a09d0ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [16]: c = MapCoord.create({'skycoord': events.radec, 'energy': events.energy}) | |
In [17]: c.skycoord | |
--------------------------------------------------------------------------- | |
ValueError Traceback (most recent call last) | |
<ipython-input-17-586f3db73d10> in <module> | |
----> 1 c.skycoord | |
~/work/code/gammapy/gammapy/maps/geom.py in skycoord(self) | |
876 def skycoord(self): | |
877 return SkyCoord( | |
--> 878 self.lon, self.lat, unit="deg", frame=coordsys_to_frame(self.coordsys) | |
879 ) | |
880 | |
~/work/code/gammapy/gammapy/maps/geom.py in coordsys_to_frame(coordsys) | |
176 return "galactic" | |
177 else: | |
--> 178 raise ValueError(f"Unrecognized coordinate system: {coordsys!r}") | |
179 | |
180 | |
ValueError: Unrecognized coordinate system: None | |
In [18]: events.radec | |
Out[18]: | |
<SkyCoord (ICRS): (ra, dec) in deg | |
[(260.45935, -33.553337), (261.37506, -34.395004), | |
(259.56973, -33.409416), ..., (266.0002 , -29.77206 ), | |
(266.39728, -29.105953), (262.72217, -34.388405)]> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment