-
Notifications
You must be signed in to change notification settings - Fork 356
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
Generalize time-domain waveform modes generation via lalsim #4973
Conversation
* Added a function to generate waveform modes for many time-domain approximants available via lalsimulation. * Added a function to generate lalsimulation approximant object from model name string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this!
@prayush I think one thing to understand is the mode convention for the different approximants. We've had this experience before where things like XPHM or the NRSurrogates differ in what frame they defined the modes. The latter actually being easier to work with since could pretty easily apply initial inclination / phase and reconstruct the waveform post-facto even for a precessing signal. Is this standardized now, or is it still a free for all? |
@ahnitz indeed many of those issues are now worked out. AFAIK the frame conventions for defining the initial binary spin conventions have been made consistent between all waveform approximants (or at least among the major ones). However the meaning of angle parameters, like One solution to this dilemma could be that this interface that I've added here require a prefix "LAL" to the approximant name, e.g. If you think either of these are useful, let me know and I'll patch this PR accordingly. Overall though, this functionality will be very useful to have though. |
@prayush I don't think it's needed to modify the names. The question about convention was more to do with how the modes are defined and extracted not the spin definition. This has not been entirely consistent, especially between things like the NRSurrogates and the Phenom Models. The latter combined +- m modes together and handled the extraction frame differently (in the precessing case). This mean that in practice one couldn't recombine them with the ylms to project to a particular phase / inclination. For the NRSurrogates you could however. So the real question is if the modes here can be recombined into the full waveform by only multiplying by the appropriate ylm term and summing? (e.g. can you directly feed them back to the |
@ahnitz I believe the answer is yes. Here is some evidence in code:
which gives me the following figures: |
In other words, whatever can be done with |
One question I have for you @ahnitz is for the NRSur approximants, currently we have a call into the surrogates' API directly, and not through lalsuite. Do you want to retain that (as this PR does)? Or do you prefer to have that redirected through |
@ahnitz gentle ping on this. |
Generalize time-domain waveform modes generation via `lalsimulation``
Standard information about the request
This is a: new feature
This change affects: No existing code, this is a new feature
This change changes: CBC waveform modes generation
This change: has appropriate unit tests, follows style guidelines (See e.g. PEP8), has been proposed using the contribution guidelines
Motivation
There are many approximants implemented in
lalsimulation
that allow for generation of individual spherical harmonic modes of gravitational radiation. We want to interface them through thewaveform.get_td_waveform_modes
interface, which currently works for a small number of approximants.Contents
Added a function to generate waveform modes for many time-domain approximants available via lalsimulation.
Added a function to generate lalsimulation approximant object from model name string.
Links to any issues or associated PRs
Testing performed
Additional notes