bayspar.predict_seatemp_analog

bayspar.predict_seatemp_analog(tex, prior_std, temptype, search_tol, prior_mean=None, nens=5000, progressbar=True)

Predict sea temperature with TEX86, using the analog method

Parameters:
tex : ndarray

n-length array of TEX86 observations from a single location.

prior_std : float

Prior standard deviation for sea temperature (°C).

temptype : str

Type of sea temperature desired. Either ‘sst’ for sea-surface or ‘subt’.

search_tol: float

Tolerance for finding analog locations. Comparison is between the mean of dats and the mean tex value within each large gridcell.

prior_mean : float

Prior mean for sea temperature (°C).

nens : int

Size of MCMC ensemble draws to use for calculation.

progressbar: bool

Whether or not to display a progress bar on the command line. The bar shows how many analogs have been completed.

Returns:
output : Prediction
Raises:
EnsembleSizeError