In spectrum1d -L says
By default, a linear trend will be removed prior to the transform.
Which is the formula used to do that? This (taken from trend1d first example)?
To remove a linear trend from data.xy by ordinary least squares, use:
gmt trend1d data.xy -Fxr -Np1 > detrended_data.xy
Thanks in advance!