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.

This notebook allows for easy access to snow depths and SWE from the Snow Telemetry (SNOTEL) network. A simple example is used to show quick access to SNOTEL data over Creamer’s Field, AK using the metloom package.

Credit: M3Works for the metloom package, which can be found here: https://github.com/M3Works/metloom/tree/main

Metloom allows for easy access to several weather station types, including SNOTEL, MesoWest, and NorwayMet. The primary query function for each is SnotelPointData (replace “Snotel” with station of choice), which also allows us to view the locations of weather stations. We’ll start this example doing just that.

We are going to look for active SNOTEL stations near Creamer’s Field in Fairbanks, AK. The below cells search for SNOTEL stations within 0.5 degrees latitude/longitude of the provided polygon.

We will also go ahead and define the variables we want from the station, using SnotelPointData.ALLOWED_VARIABLES. Some of the allowed variables include:

  • SNOWDEPTH: Snow depth, typically in inches.

  • SWE: Snow water equivalent, typically in inches.

  • PRECIPITATION: Accumulated precipitation, in inches.

  • TMP: Air temperature, in degrees Fahrenheit.

[SnotelPointData('1302:AK:SNTL', 'Creamers Field')]

Looks like we have a SNOTEL station here! Note the printed output: Metloom returns the station ID number (1302), the state it’s in (AK), and the type of weather station (SNTL).

Let’s see where it’s located in Creamer’s Field, relative to the polyon we provided.

Loading...

Now that we know which SNOTEL is in the area, we can query for the data.

As with other API requests, we can subset the data with a date range, given as datetime objects.

Note here that we are requesting for snow depths on a daily basis. If desired, we could also obtain the hourly data instead, using pt.get_hourly_data().

Loading...

Easy enough! We now have a data frame containing the basic information of the SNOTEL site, as well as the snow depth in inches.

Since inches aren’t very useful in scientific analysis, and SNOWDEPTH can be a hassle to type out, let’s make a new column that shows the depth in meters.

From there, it’s simple to plot the snow depth data as a time series.

<Figure size 640x480 with 1 Axes>