nsrdb.utilities.interpolation

NSRDB interpolation algorithms for downscaling.

Created on Tue Dec 4 08:22:26 2018

@author: gbuster

Functions

agg(data, indices)

Spatal interpolation by aggregation of nearest neighbors.

idw(data, indices, distance[, p, dist_thresh])

Inverse Distance Weighted Spatial Interpolation.

lower_data(var, data, var_elev)

Lower Data Values using Elevation and Scale Height

nn(data, indices[, distance, dist_thresh])

Nearest Neighbor Spatial Interpolation.

parse_method(method)

Parse a method string for a numeric option as the last char.

raise_data(var, data, ref_elev)

Raise Data Values using Elevation and Scale Height

remove_tz(ti)

Remove the timezone awareness of a DatetimeIndex if the tz is "UTC"

spatial_interp(var, data, native_grid, ...)

Perform single variable spatial interpolation on MERRA data array.

temporal_lin(array, ti_native, ti_new)

Linearly interpolate an array at a native timeindex to the new timeindex

temporal_step(array, ti_native, ti_new)

Stepwise interpolate an array at a native timeindex to the new timeindex