I am going to create phase-randomized surrogated time series [they can be generated by randomizing the phases of the Fourier transformed components of the original time series between 0-2pi] for my daily or monthly time series, but to keep the cycle of fluctuations in the generated times series I want to keep the original phase related to the most significant frequency of my original time series in the generated ones.
I found the most significant frequency of my original time series which is 0.002738601 and so is related to the period (T) of 365.1499 days which means it is related to the Annual Cycle.
Now I want to keep the original phase related to this frequency in my generated time series, while all other phases are randomized between 0-2pi.
I can make my phase-randomized generated time series but I am not sure how can I keep the phase related to a especial frequency in the generated time series.
I changed the format of my question by removing my codes and explaining it more clear.
I am doing my coding in R, but this question can be assumed as a general question related to signal analysis.