Skip to content
Snippets Groups Projects
Commit 8da40eb0 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 2f6a2a2f
Branches
No related tags found
No related merge requests found
...@@ -44,6 +44,8 @@ class LonLatGrid: ...@@ -44,6 +44,8 @@ class LonLatGrid:
flons = flons[keep] flons = flons[keep]
flats = flats[keep] flats = flats[keep]
self.lon_lo, self.lon_hi = flons.min(), flons.max()
self.lat_lo, self.lat_hi = flats.min(), flats.max()
points = np.stack([flons, flats], axis=1) points = np.stack([flons, flats], axis=1)
...@@ -177,6 +179,9 @@ class LonLatGrid: ...@@ -177,6 +179,9 @@ class LonLatGrid:
return outv return outv
def check_inside(self, lon, lat):
return (self.lon_lo < lon < self.lon_hi) & (self.lat_lo < lat < self.lat_hi)
DEG_TO_RAD = np.pi/180.0; DEG_TO_RAD = np.pi/180.0;
RAD_TO_DEG = 180.0/np.pi; RAD_TO_DEG = 180.0/np.pi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment