wakatools.base.DataFrameAccessor.calculate_residuals#
- DataFrameAccessor.calculate_residuals(value: str, raster: DataArray) ndarray[source]#
Calculate residuals between the values in the DataFrame and the raster values at the DataFrame coordinates. The raster values at the DataFrame coordinates are obtained using TIN interpolation.
- Parameters:
value (str) – The column name in the DataFrame containing the values to compare against the raster.
raster (xr.DataArray) – The raster DataArray to compare against.
- Returns:
An array of residuals (raster value - DataFrame value) for each point in the DataFrame.
- Return type:
np.ndarray