Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index 5533 is out of bounds for axis 0 with size 5533 #2

Open
ven1996 opened this issue Oct 27, 2021 · 0 comments
Open

index 5533 is out of bounds for axis 0 with size 5533 #2

ven1996 opened this issue Oct 27, 2021 · 0 comments

Comments

@ven1996
Copy link

ven1996 commented Oct 27, 2021

I am getting an error in the program to get the best symmetric matches.
My first catalog contains ~20,000 rows and the second row contains 5533 rows.

in symmetric_match_sky_coords(ra1, dec1, ra2, dec2, tolerance)
51 # not sure this condition covers all of the possible corner cases. But good enough.
52 # (NB: should put in an assertion to check that tolerance is an angular unit)
---> 53 if sep2d_1to2[i] < tolerance and i == closest_2to1[closest_1to2[i]]:
54 index1_matched.append(i)
55 index2_matched.append(closest_2to1[i])

~/anaconda3/lib/python3.8/site-packages/astropy/units/quantity.py in getitem(self, key)
1043 def getitem(self, key):
1044 try:
-> 1045 out = super().getitem(key)
1046 except IndexError:
1047 # We want zero-dimensional Quantity objects to behave like scalars,

IndexError: index 5533 is out of bounds for axis 0 with size 5533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant