We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working examples:
>>> from earthkit.data import from_source >>> from earthkit.data.geo import nearest_point_kdtree >>> ds = from_source("file", "tests/data/t_time_series.grib") >>> latlon = ds.to_latlon() >>> lat = latlon["lat"] >>> lon = latlon["lon"] >>> p_ref = (51.45, -0.97) >>> nearest_point_kdtree(p_ref, (lat, lon)) (array([12]), array([952662.46605954]))
>>> from earthkit.data import from_source >>> from earthkit.data.geo import GeoKDTree >>> ds = from_source("file", "tests/data/t_time_series.grib") >>> latlon = ds.to_latlon() >>> lat = latlon["lat"] >>> lon = latlon["lon"] >>> p_ref = (51.45, -0.97) >>> tree = GeoKDTree(lat, lon) >>> tree.nearest_point(p_ref) (array([12]), array([952662.46605954]))
The text was updated successfully, but these errors were encountered:
sandorkertesz
Successfully merging a pull request may close this issue.
Working examples:
The text was updated successfully, but these errors were encountered: