Skip to content
Snippets Groups Projects
Commit 9628db45 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 6867c760
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ from scipy import linalg ...@@ -7,6 +7,7 @@ from scipy import linalg
from scipy.spatial import KDTree from scipy.spatial import KDTree
from sklearn.neighbors import BallTree from sklearn.neighbors import BallTree
from util.util import haversine_np from util.util import haversine_np
from scipy.ndimage import gaussian_filter
class MyGenericException(Exception): class MyGenericException(Exception):
...@@ -14,8 +15,9 @@ class MyGenericException(Exception): ...@@ -14,8 +15,9 @@ class MyGenericException(Exception):
self.message = message self.message = message
# Author: T.Rink
# For nearest neighbor/interpolation of a function whose domain is a geostationary satellite fixed grid. # 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: class LonLatGrid:
# grd_lons, grd_lats: the longitude, latitude of each grid point (must be 2D grids), must have same shape # 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 # Incoming longitude must be in range: 0 - 360 degrees
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment