racmo_extrap_mean.py
Interpolates the mean of downscaled RACMO products to spatial coordinates using inverse distance weighting
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/XGRN112.0: RACMO2.3p2/XGRN113.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 BalancePRECIP: PrecipitationRUNOFF: Melt Water RunoffSNOWMELT: SnowmeltREFREEZE: 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