mar_interp_mean.py

  • Interpolates and extrapolates mean MAR products to times and coordinates using surface splines

Source code

General Methods

SMBcorr.interpolate_mar_mean(DIRECTORY, EPSG, VERSION, tdec, X, Y, VARIABLE='SMB', XNAME=None, YNAME=None, TIMENAME='TIME', RANGE=[2000, 2019], SIGMA=1.5, FILL_VALUE=None)[source]

Read and interpolates the temporal mean of MAR products

Parameters:
DIRECTORY: str

Working data directory

EPSG: str or int

input coordinate reference system

VERSION: str

MAR Version

  • v3.5.2

  • v3.9

  • v3.10

  • v3.11

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’

MAR product to interpolate

  • SMB: Surface Mass Balance

  • PRECIP: Precipitation

  • SNOWFALL: Snowfall

  • RAINFALL: Rainfall

  • RUNOFF: Melt Water Runoff

  • SNOWMELT: Snowmelt

  • REFREEZE: Melt Water Refreeze

  • SUBLIM: Sublimation

XNAME: str or NoneType, default None

Name of the x-coordinate variable

YNAME: str or NoneType, default None

Name of the y-coordinate variable

TIMENAME: str or NoneType, default ‘TIME’

Name of the time variable

RANGE: list, default [2000,2019]

Start and end year of mean

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

Directories

  • <path_to_mar>/MARv3.11.2/Greenland/7.5km_ERA5/

  • <path_to_mar>/MARv3.11.2/Greenland/10km_ERA5/

  • <path_to_mar>/MARv3.11.2/Greenland/15km_ERA5/

  • <path_to_mar>/MARv3.11.2/Greenland/20km_ERA5/

  • <path_to_mar>/MARv3.11.2/Greenland/20km_NCEP1/

  • <path_to_mar>/MARv3.11/Greenland/ERA_1958-2019-15km/daily_15km/

  • <path_to_mar>/MARv3.11/Greenland/NCEP1_1948-2020_20km/daily_20km/

  • <path_to_mar>/MARv3.10/Greenland/NCEP1_1948-2019_20km/daily_20km/

  • <path_to_mar>/MARv3.9/Greenland/ERA_1958-2018_10km/daily_10km/