mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-22 21:38:03 +00:00
Fix bug
This commit is contained in:
parent
64bacc20db
commit
e28739835b
1 changed files with 3 additions and 3 deletions
|
@ -154,15 +154,15 @@ class TwoMPPGroups(TextSurvey):
|
||||||
# Pre-allocate and fill the array
|
# Pre-allocate and fill the array
|
||||||
cols = [("RA", numpy.float64), ("DEC", numpy.float64),
|
cols = [("RA", numpy.float64), ("DEC", numpy.float64),
|
||||||
("K2mag", numpy.float64), ("Rich", numpy.int64),
|
("K2mag", numpy.float64), ("Rich", numpy.int64),
|
||||||
("sigma", numpy.float64e)]
|
("sigma", numpy.float64)]
|
||||||
data = cols_to_structured(cat.shape[0], cols)
|
data = cols_to_structured(cat.shape[0], cols)
|
||||||
data["K2mag"] = cat[:, 3]
|
data["K2mag"] = cat[:, 3]
|
||||||
data["Rich"] = cat[:, 4]
|
data["Rich"] = cat[:, 4]
|
||||||
data["sigma"] = cat[:, 7]
|
data["sigma"] = cat[:, 7]
|
||||||
|
|
||||||
# Convert galactic coordinates to RA, dec
|
# Convert galactic coordinates to RA, dec
|
||||||
glon = data[:, 1]
|
glon = cat[:, 1]
|
||||||
glat = data[:, 2]
|
glat = cat[:, 2]
|
||||||
coords = SkyCoord(l=glon * units.degree, b=glat * units.degree,
|
coords = SkyCoord(l=glon * units.degree, b=glat * units.degree,
|
||||||
frame='galactic')
|
frame='galactic')
|
||||||
coords = coords.transform_to("icrs")
|
coords = coords.transform_to("icrs")
|
||||||
|
|
Loading…
Reference in a new issue