{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Rasters 2: Overlays" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Overview\n", "\n", "\n", "1. Read in a raster file in GeoTIFF format of surface elevation using the Rioxarray package\n", "1. Explore the attributes of the GeoTIFF file\n", "1. Plot the GeoTIFF using Matplotlib and Cartopy\n", "1. Overlay the GeoTIFF on a plot of realtime forecast reflectivity data\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Prerequisites\n", "\n", "| Concepts | Importance | Notes |\n", "| --- | --- | --- |\n", "| Rasters 1| Necessary | |\n", "\n", "* **Time to learn**: 30 minutes\n", "***" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
rioxarray
library, we've also imported USCOUNTIES from MetPy. This allows for the plotting of US county line boundaries, similar to other Cartopy cartographic features such as states.imshow
method.\n",
"spatial_ref
. This coordinate variable's attributes includes CRS info in what's called well-known text (WKT) format, as well as the Affine transformation parameters. See references at the end of this notebook.\n",
"imshow
is extent. The default values are not what we want; instead, we use the Bounding Box values that we read in earlier. See the documentation for extent in imshow
's documentation.