R/fit_season_phase.R
fit_season_phase.Rd
For a PfPR time series, \(x\), fit a spline function
fit_season_phase(xds_obj)
an xds xds_obj
xds
a list with the mean peak and the values