gwnrtools / nr-catalog-tools

A unified interface to various catalogs of Numerical Relativity simulations of compact binary mergers.
https://github.com/gwnrtools/nr-catalog-tools
GNU General Public License v3.0
1 stars 5 forks source link

Interpolate in amplitude and phase #37

Closed vaishakp closed 1 year ago

vaishakp commented 1 year ago

This PR adds the following features:

  1. Interpolate in amplitude and phase instead of the waveforms.
  2. Add upto 5th order interpolation support using scipy.interpolate.InterpolatedUnivariateSpline .
  3. Adds support to use scipy.interpolate.interp1d and scipy.interpolate.CubicSpline as a choice.

Changes:

  1. The get_td_waveform method will now use the 3rd order interpolation method in amplitude and phase using scipy.interpolate.InterpolatedUnivariateSpline instead of CubicSpline in the waveforms themselves.