racmo_interp_daily.py

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

Source code

General Methods

SMBcorr.interpolate_racmo_daily(base_dir, EPSG, MODEL, tdec, X, Y, VARIABLE='smb', SIGMA=1.5, FILL_VALUE=None, EXTRAPOLATE=False)[source]

Reads and interpolates daily RACMO surface mass balance products

Parameters:
base_dir: str

Working data directory

EPSG: str or int

input coordinate reference system

MODEL: str

Daily model outputs to interpolate

  • FGRN055: 5.5km Greenland RACMO2.3p2

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

  • hgtsrf: Change of Surface Height

SIGMA: float, default 1.5

Standard deviation for Gaussian kernel

FILL_VALUE: float or NoneType, default None

Output fill_value for invalid points

Default will use fill values from data file

EXTRAPOLATE: bool, default False

Create a regression model to extrapolate in time