Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
9628db45
Commit
9628db45
authored
2 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
6867c760
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/util/lon_lat_grid.py
+3
-1
3 additions, 1 deletion
modules/util/lon_lat_grid.py
with
3 additions
and
1 deletion
modules/util/lon_lat_grid.py
+
3
−
1
View file @
9628db45
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment