racmo_interp_downscaled.py

  • Interpolates and extrapolates downscaled RACMO products to times and coordinates using surface splines

Source code

General Methods

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

Reads and interpolates 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

FILL_VALUE: float or NoneType, default None

Output fill_value for invalid points

Default will use fill values from data file