rmjarvis / TreeCorr

Code for efficiently computing 2-point and 3-point correlation functions. For documentation, go to
http://rmjarvis.github.io/TreeCorr/
Other
97 stars 37 forks source link

possible weight issue for 2pt correlation with cartesian coordinates #152

Closed felipeavila331 closed 1 year ago

felipeavila331 commented 1 year ago

Hi,

I am currently calculating the 2-point correlation function for a 3D distribution with FKP weights.

In spherical coordinates it works well. However, since I want to get the matrix covariance, I move to Cartesian coordinates. But when I run the code, the function xi(r)r^2 explodes when I apply the weights. Without the weights it works fine.

Do I need to modify something when I am in (x, y, z) for the weight to work?

I will add a printout of my code.

Thanks for the help.

Captura de tela de 2023-04-03 20-55-31

rmjarvis commented 1 year ago

I can't do much with this. Please supply a SCCEE that reproduces your issue, and I'll take a look.

felipeavila331 commented 1 year ago

Thanks for the feedback.

Discussing with my supervisor and reviewing code and theory, I came to the conclusion that the weights are not being built correctly. I will close the issue.