Stream: general

Topic: python functions


view this post on Zulip Alice DuVivier (Nov 16 2023 at 21:38):

Does anyone know of a python equivalent to calculating great circle distances between two locations given lat/lon values? I used to use an NCL function (https://www.ncl.ucar.edu/Document/Functions/Built-in/gc_latlon.shtml) and then loop through all points on the CESM grid. So I'm looking to do some distance calculations between a location and all grid points recursively.

view this post on Zulip Katelyn FitzGerald (Nov 16 2023 at 21:57):

geopy's great_circle distance should do the trick.

There are some other suggestions in this thread as well that should work.

view this post on Zulip Alice DuVivier (Nov 17 2023 at 15:04):

Thanks, Katelyn. I'll look into that. :)


Last updated: May 16 2025 at 17:14 UTC