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

How to use ConvolvFFTPower of fields other than FKP density? #653

Open
julianbautista opened this issue Mar 12, 2021 · 1 comment
Open

Comments

@julianbautista
Copy link

julianbautista commented Mar 12, 2021

First, thank you for all the work building this amazing package.

I read the cookbooks on

  • how to paint the momentum with a fixed line-of-sight (L.O.S.), and
  • how to compute multipoles of the density power-spectrum in a realistic survey with varying L.O.S.

I would like to:

  • compute multipoles of the momentum power-spectrum with a varying L.O.S.

Looking at the code of ConvolvedFFTPower, it looks like it really requires a FKPCatalog or FKPCatalogMesh, which assume that I want the power-spectrum of F = w * (n_g - alpha * n_r).

The solution for my problem would be to be able to provide F = w * n_g * radial_velocity, and then give it to ConvolvedFFTPower for compute the multipoles with a varying LOS. This new definition of F does not require a random catalog, but I need the varying LOS capability of ConvolvedFFTPower.

Do you have any suggestions on solutions or alternative hacks I could use? I am new to this package, so apologies if the solution is obvious.

Many thanks

@rainwoodman
Copy link
Member

Hi,

A very quick suggestion is to define a different CatalogMesh class, for example, FKPVelocityCatalogMesh. The implementation can be based on (mostly copying) FKPCatalogMesh. In FKPVelocityCatalogMesh.to_real_field, however, you can paint F = w * n_g * radial_velocity, rather than painting the traditional FKP field.

Because your data doesn't come with randoms, I would also suggest __init__ of FKPVelocityCatalogMesh consumes a Catalog object, instead of a FKPCatalog object (which is used by a FKPCatalogMesh.__init__).

What do you think?

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

2 participants