Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Overview

Within this notebook, we will create interactive visualizations of METAR data at a single hour. We will use the following libraries for our visualizations:

  1. Geopandas

Prerequisites

ConceptsImportanceNotes
Cartopy IntroRequiredProjections and Features
PandasRequiredTabular Datasets
  • Time to learn: 20 minutes


Imports

By default, set the date and time to one hour prior to the current time. Or, specify a past date and hour.

The timestamps of many hourly METAR reports are 5-10 minutes prior to the top of the hour. When we make our DuckDB query, we will specify a beginning and end time, one hour apart.

2026-10-23 02:24:23.385799 2026-10-23 03:24:23.385799
'2026-10-23 0300 UTC'
['https://data.source.coop/dynamical/asos-parquet/year=2026/data.parquet']

Open the GeoParquet file for the specific year.

Loading...
/tmp/ipykernel_4489/3583836804.py:9: Pandas4Warning: The inplace keyword in DataFrame.drop is deprecated and will be removed in a future version (PDEP-8).
See https://pandas.pydata.org/docs/dev/whatsnew/v3.1.0.html#deprecation-inplace for more details.
  """, [URLs, time_0, time_1]).fetchdf()
Loading...
Loading...
Loading...
Loading...

Now, let’s choose a specific variable ... in this case, tmpc (2-meter temperature in °C)

Loading...

Plot hourly precipitation

Loading...

Add a title to the graphic

Loading...

References

What’s next?

We will use Lonboard as an additional interactive visualization tool.