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

cmb_to_helio is broken #8

Open
dannygoldstein opened this issue Aug 22, 2016 · 3 comments
Open

cmb_to_helio is broken #8

dannygoldstein opened this issue Aug 22, 2016 · 3 comments

Comments

@dannygoldstein
Copy link

According to NED,

CMB Redshift: 8508.0 km/s (0.0284)
RA: 3.14703055556
DEC: -7.03325

corresponds to a heliocentric redshift of 8689.65 km/s or 0.0290

cmb_to_helio returns 0.0271.

@AlexGKim
Copy link

AlexGKim commented Mar 4, 2017

Digging a little deeper, looks like the problem is with cmb_dz. Choosing directions toward the cmb and opposite the cmb should give opposite values. They do not.

CMB_RA = 168.01190437
CMB_DEC = -6.98296811
print sndatasets.utils.cmb_dz(CMB_RA, CMB_DEC)
print sndatasets.utils.cmb_dz(CMB_RA+180, -CMB_DEC)

output is

0.0012039378391
0.00106215374604

@kbarbary
Copy link
Member

kbarbary commented Mar 4, 2017

This code was adapted from some of @rubind's code; I might have made a transcription error. Maybe David can comment?

@rubind
Copy link
Contributor

rubind commented Jul 9, 2017

I just checked the formula, and there's a typo in this version. There's a pull request for a fix.

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

4 participants