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

ENH(fields): compute effective spectra of a simulation #146

Merged
merged 2 commits into from
Jan 9, 2024
Merged

Conversation

ntessore
Copy link
Collaborator

@ntessore ntessore commented Jan 9, 2024

Adds a function effective_cls() which takes a list of weights for each shell and the angular matter power spectrum and returns an array of the effective spectra for when matter shells are combined using the given weights. This can be used to exactly predict what the angular power spectra coming out of a simulation will be after discretisation.

To obtain the angular galaxy power spectrum, a new function position_weights() computes the weights corresponding to positions_from_delta(). To obtain the angular convergence power spectrum, a new function multi_plane_weights() computes the weights corresponding to MultiPlaneConvergence.

Closes: #130
Added: A new function effective_cls() which combines power spectra using a list of weights, which models what happens in the simulation.
Added: A new function position_weights() that returns weights for effective_cls() to model the result of positions_from_delta().
Added: A new function multi_plane_weights() that returns weights for effective_cls() to model the result of MultiPlaneConvergence.

@ntessore ntessore merged commit e9c16ce into main Jan 9, 2024
9 checks passed
@ntessore ntessore deleted the pr/gh-130 branch January 9, 2024 10:55
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

Successfully merging this pull request may close these issues.

Expected angular power spectra from discretisation
1 participant