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.

plane

METAR Local Statistics Notebook

This chapter walks you through the request and access of local METeorological Aerodrome Report (METAR) data from dynamical.org, a climatological analysis using your station’s full data record, and challenges the user to analyze meteorological patterns and trends using the tools provided. This notebook will leave you with organized plots and a greater understanding of your region’s climatological trends.


Purpose

To provide hands-on experience in requesting and working with near real-time METAR data from Dynamical.org.

Audience

Users with at least 5 GB of memory in their computing environment. No programming experience is necessary to run the notebook, but a basic knowledge of Python (especially pandas and matplotlib) will help you apply these skills!

Expected Outcome

By the end of this chapter, you will have produced numerous climatological plots that analyze all available METAR records from within 20 miles of your requested location. If you wish to continue working with near real-time METAR data beyond this notebook, there are two bonus challenges at the end of the notebook that encourage the user to further apply their skills.

Estimated Time

  • 5 minutes — Run the notebook and review the code.

  • 15 minutes — Build enough familiarity to reproduce the workflow independently and create your own plots.

  • 45 minutes — Complete the bonus challenges and feel comfortable working with METAR data in Python.


📦 Imports


✈️ About METAR

METAR is a format for weather reporting that is predominantly used for pilots and meteorologists (weather.gov). These reports are taken hourly and include the following meteorological variables: temperature, dewpoint, relative humidity, wind direction, wind speed, wind gusts, mean sea level pressure, visibility, and precipitation total. The information is provided in a single line of text (seen below), but has been transformed into a more readable format.

METAR example: LBBG 041600Z 12012MPS 090V150 1400 R04/P1500N R22/P1500U +SN BKN022 OVC050 M04/M07 Q1020 NOSIG 8849//91

💻 About dynamical.org

dynamical.org is a not-for-profit organization with a mission to advance humanity’s ability to access, understand, and act on accurate weather and climate data. They increase accessability to these datasets by providing them in Analysis-Ready Cloud-Optimized (ARCO) format, allowing for quicker startup times and more efficient scientific exploration. Their (Global Airport Observations) dataset is an experimental product retrieved from the Iowa Environmental Mesonet and provided in GeoParquet format.


📌 Location query

This section of the notebook uses the Python package ‘geopy’ to take in a user-requested geographic location and return a corresonding lat/lon point. Then, the code requests all lat/lon points associated with an ASOS station from the database hosted by dynamical.org, locates the closest station (within 20 miles), and procures all historical ASOS observations for that site.

Location: Sioux Falls, Sioux Falls Township, Minnehaha County, South Dakota, United States
Loading...
Nearest station: FSD, SIOUX FALLS
Distance: 2.4 miles
Loading...
Loading...

📊 Climatological analysis

The analysis component of the notebook uses the available historical ASOS observations to tell a story about meteorological-informed patterns: daily, and hourly, and historical trends in temperature, dewpoint, visibility, precipitaiton, wind speed, and pressure.

Annual averages: a typical year in your location.

This first series of plots averages the meteorological variables by day of year. Use this study to estimate what temperatures you might expect to experience during a typical July, or discover when your chosen location historically experiences the highest winds.

<Figure size 2200x1500 with 6 Axes>

The diurnal cycle: measurements of an average day

This section demonstrates the diurnal cycle, or the average conditions by time of day. Use this study to visualize the time of day that experiences the coldest temperatures, or the hour that has historically received the most precipitaiton.

<Figure size 2200x1500 with 6 Axes>

Weather records: a look at the most extreme variables on record

Finally, this study breaks down the 10 most extreme cases of different meteorological conditions. This leaderboard is a look-back at historical events, such as the location’s largest recorded precipitation event, or the most notable heat wave.

<Figure size 2200x1500 with 6 Axes>

🏆 Bonus Challenges:

You’ve completed the Local Statistics notebook! Congratulations on making a location query, loading METAR data from dynamical.org, and evaluating the resulting plots. If you’d like to continue your learning in this subject area, below are two additional challenges to take your analysis a step further.

🟢 Challenge (easy) -- plot all annual precipitation totals

🟡 Challenge (medium) -- plot the growing season of each year

What’s Next?

  • We will compare METAR observations to a reanalysis.