This function detects the signal factors on the observed data via total least square linear regression model.
fpPrep(
datafile,
variable,
region = "GL",
target.year,
average = 5,
reference = c(1961, 1990),
regridding = NULL
)a dataset of the processed gridded climate variables for Y, Xtilde or control runs
path to the netCDF4 gridded datafile to be processed
the climate variable to be extracted
the longitude and latitude boundary for selected region, should match the format of IPCC AR6 regions, the lon and lat of the vertices
vector of length 2, the starting and ending year of the selected time period for D&A analysis
number of years for average on each gridbox, default is 5-year average
vector of length 2, the starting and ending year of reference time period for computing anomalies
whether the grid box should be regridded. Specify the size of the grid box, e.g., c(40, 30) for \(40^\circ \times 30^\circ\) grid box. If no regridding, leave empty
Yan Li