From 9628db459751edeadb91bb3f78b85913463138b3 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 19 Dec 2022 10:28:28 -0600 Subject: [PATCH] snapshot... --- modules/util/lon_lat_grid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/util/lon_lat_grid.py b/modules/util/lon_lat_grid.py index 339bce13..dc772429 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 -- GitLab