[AstroPy] Sine1D with phase?

Erik Bray embray at stsci.edu
Tue Sep 29 09:02:57 EDT 2015


On 09/29/2015 04:16 AM, Rolf Buehler wrote:
> Dear all,
> I would like to fit a Sine1D to a dataset, however, am I right that in the
> current implementation there is no phase parameter? (f(x) = A * sin(2 * pi * f *
> x + Phase)
>
> http://docs.astropy.org/en/stable/api/astropy.modeling.functional_models.Sine1D.html#astropy.modeling.functional_models.Sine1D
>
>
> I will create a custom_model to work around this, but maybe it would be better
> to add a phase to the model?
>
> Thank you and all the best,
> Rolf

A phase parameter was already added in the development version and will be in 
the v1.1.0 release:

http://docs.astropy.org/en/latest/api/astropy.modeling.functional_models.Sine1D.html

Best,
Erik




More information about the AstroPy mailing list