racmo_interp_mean.py

  • Interpolates the mean of downscaled RACMO products to spatial coordinates using surface splines

Source code

General Methods

SMBcorr.interpolate_racmo_mean(base_dir, EPSG, VERSION, tdec, X, Y, VARIABLE='SMB', RANGE=[], FILL_VALUE=None)[source]

Reads and interpolates the temporal mean of downscaled RACMO surface mass balance 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

FILL_VALUE: float or NoneType, default None

Output fill_value for invalid points

Default will use fill values from data file