R/fit_season_phase.R
preset_phase.Rd
Compute the empirical phase from a PfPR time series, \(t,x\), and adjust the model phase to match it.
preset_phase(xds_obj)
an xds xds_obj
xds
a list with the mean peak and the values
This algorithm makes a crude guess at the seasonal phase for the forcing function. close to the value that will get fitted later.