-
Notifications
You must be signed in to change notification settings - Fork 17
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
Inconsistent distance calculations in dm_to_dist #22
Comments
Hi @shutsch, that is indeed peculiar! This behavior matches the compiled version of YMW16, so it is a quirk/bug of YMW16 itself:
Having a bit of a diagnostic look, it seems this is due to different step sizes being chosen for the integration along the line of sight within YMW16:
Not sure if this is a bug or just a quirk of the numerical integration. But my feeling is that this is probably just a numerical error, and other uncertainties due to the model itself are larger. YMW16 does not output uncertainty estimates, but in the pygedm paper I calculated that 87% of distance estimates lie PS: I considered adding uncertainties to |
Hi @telegraphic, Thanks for looking into this. I was a bit worried about systematic effects this would introduce, but the paper you reference makes it clear that this isn't really an issue. |
Updating docs is a good plan 👍 |
Hi,
It appears to me that there are some inconsistencies with the dm_to_dist function in pygedm.
For some particular lines of sights and radial positions, the predicted distances decrease with increasing DM, which is clearly unphysical, as it would correspond to negative electron densities between the points.
An example script:
This gives:
The distance starts to increase again with rising DM from there on.
I have found a couple of dozens of such jumps, I can attach a list if needed.
The electron densities at these points are physical and (roughly) consistent with the increase in DM.
The text was updated successfully, but these errors were encountered: