-
Notifications
You must be signed in to change notification settings - Fork 15
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
zero-size array error when including magnitudes #18
Comments
Your issue is here: 1591 secure matches, 1591 insecure matches and 0 secure non-matches It did not find any secure non-matches that it could use for building a histogram of "field" sources. I agree, the error message could be better. |
Okay I had the same issue and this makes sense, but I am still confused on what this means for including magnitude priors. Does this mean that based on our output from nway before including the priors, we do not need to do anything else? Our current output is fine? |
Everything is fine in the way it is run. However, when running the match with just positional matches, you will see that none or very few matches are secure. If you want to use automatically built prior distributions, you need some secure matches to build that histogram. Alternatively, you can still provide a prior file manually, or produced from a different run (this is described in the manual). |
How do we distinguish secure matches? |
It is set by the --mag-auto-minprob parameter and defaults to 0.9. This threshold is applied to the dist_post output column. |
Hi, since the matching results are given as probabilities, why do we have to distinguish secure matches and non-matches? Could the probabilities be used as weights of candidates to construct the prior histograms? |
Yes, it would be possible to create histograms with the probabilities and 1-prob as weights. However, objects which are unclear (probability ~ 0.5), would enter both. They are usually the largest number and would dilute the signal-to-noise and thus the distinguishing power when applying the histogram ratios. |
Do you think this can be put in an iterative scheme? It can start from the distance-based results, and in each iteration, the histograms are refined, eventually, the input prior will be identical to the posterior-weighted histograms, and the results converge in a self-consistent manner. |
If you have specific demands, you can use a position-based matching, and use the NWAY outputs to create a histogram, which you can then feed into a NWAY run. Some people prefer building the magnitude prior from different data, because it should be prior information to the data at hand. Doing a iterative scheme may seem unconvincing to them. |
Thanks for the reply. I will try this.
I only meant the auto method, not that with a user-supplied prior. |
Greetings,
We are trying to use nway to match some catalogs in a project we are working on. We would like to include magnitudes during the match, but nway raises a "ValueError: zero-size array" exception which is cryptic to understand and not informative of the problems that may be present in the input catalogs.
Following is the Python incantation we are using and the resulting output trace. We are also attaching the source files here so that the example is reproducible. In our exploration, the problem persists in cases where we can confirm counterparts in the secondary catalog and values in the magnitude columns (i.e., we are not sending in an empty column full of missing values).
We will appreciate any guidance the team can provide in helping us understand where we are going wrong.
nway_test.zip
@alessandropeca @hscshane
The text was updated successfully, but these errors were encountered: