racmo_extrap_mean.py

  • Interpolates the mean of downscaled RACMO products to spatial coordinates using inverse distance weighting

Source code

General Methods

SMBcorr.extrapolate_racmo_mean(base_dir, EPSG, VERSION, tdec, X, Y, VARIABLE='SMB', RANGE=[], SEARCH='BallTree', NN=10, POWER=2.0, FILL_VALUE=None)[source]

Spatially extrapolates the temporal mean of downscaled RACMO products

Parameters:
base_dir: str

Working data directory

EPSG: str or int

input coordinate reference system

VERSION: str

Downscaled RACMO Version

  • 1.0: RACMO2.3/XGRN11

  • 2.0: RACMO2.3p2/XGRN11

  • 3.0: RACMO2.3p2/FGRN055

tdec: float

time coordinates to interpolate in year-decimal

X: float

x-coordinates to interpolate

Y: float

y-coordinates to interpolate

VARIABLE: str, default ‘SMB’

RACMO product to interpolate

  • SMB: Surface Mass Balance

  • PRECIP: Precipitation

  • RUNOFF: Melt Water Runoff

  • SNOWMELT: Snowmelt

  • REFREEZE: Melt Water Refreeze

RANGE: list

Start and end year of mean

SEARCH: str, default ‘BallTree’

nearest-neighbor search algorithm

NN: int, default 10

number of nearest-neighbor points to use

POWER: int or float, default 2.0

Inverse distance weighting power

FILL_VALUE: float or NoneType, default None

Output fill_value for invalid points

Default will use fill values from data file