
Calculate SST Variability Metrics
calculate_metrics.RdThis function calculates various sea surface temperature (SST) variability metrics from a SpatRaster object.
The user can specify the desired metric, which is then computed based on time series data.
Arguments
- rast_obj
A
SpatRasterobject containing SST data. The raster should include a time dimension.- metric
A character string specifying the SST metric to compute. Options include:
- "SSTA"
Sea Surface Temperature Anomaly (SST deviation from climatology).
- "SST_SD"
Standard deviation of SST over time.
- "SST_Trend"
Linear trend of SST over time.
- "SST_Variance"
Variance of SST values.
- "SST_Seasonality"
Annual range (max - min SST).
- "SST_Interannual_Amplitude"
Difference between annual max and min SST.
- "SST_Skewness"
Skewness of SST distribution.