nsrdb.utilities.nearest_neighbor

NSRDB interpolation algorithms for downscaling.

Created on Tue Dec 4 08:22:26 2018

@author: gbuster

Functions

geo_nn(df1, df2[, labels, k])

Get geo nearest neighbors for coordinate sets using haversine dist.

knn(df1, df2[, labels, k])

Get nearest neighbors for data sets.

rad_to_dist(locs)

Multiply radians by earth's radius to get distance

reg_grid_nn(latitude, longitude, df[, labels])

Get nearest neighbors from a regular lat/lon grid.

to_rads(locs)

Convert angle array to radians