MetPy Mondays #326 - Use KDTree and MetPy to Find the Nearest METAR

In this week's MetPy Monday, we show you how to find the closest weather observation station to any location using a combination of: MetPy's built-in station metadata, scipy.spatial.KDTree for fast spatial search, and GeoPandas for accurate geodesic distance calculation.
Posted by: jleeman
Mar 31, 2025

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Article Category
Article type
Developer Blog