diff --git a/modules/util/lon_lat_grid.py b/modules/util/lon_lat_grid.py index 339bce13035308c3eee44daef111b28df3bedcf1..dc7724295abacd90a5b5763b3200cfc4f2ef6616 100644 --- a/modules/util/lon_lat_grid.py +++ b/modules/util/lon_lat_grid.py @@ -7,6 +7,7 @@ from scipy import linalg from scipy.spatial import KDTree from sklearn.neighbors import BallTree from util.util import haversine_np +from scipy.ndimage import gaussian_filter class MyGenericException(Exception): @@ -14,8 +15,9 @@ class MyGenericException(Exception): self.message = message +# Author: T.Rink # For nearest neighbor/interpolation of a function whose domain is a geostationary satellite fixed grid. -# This is a utility wrapper for sklearn.neighbors.BallTree adapted for 2D manifold. +# This is a utility wrapper for sklearn.neighbors.BallTree adapted for 2D manifold (Longitude, Latitude). class LonLatGrid: # grd_lons, grd_lats: the longitude, latitude of each grid point (must be 2D grids), must have same shape # Incoming longitude must be in range: 0 - 360 degrees