{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "lm9azastWMN7"
},
"source": [
"# Exploring TC PRIMED, Chapter 4: Regridding Satellite Swath Data\n",
"- Creators: Kathy Haynes1, Naufal Razin1, and Chris Slocum2\n",
"- Affiliation:\n",
" - 1Cooperative Institute for Research in the Atmosphere, Colorado State University, Fort Collins, CO\n",
" - 2NOAA/NESDIS Center for Satellite Applications and Research, Fort Collins, CO\n",
"- History:\n",
" - August 15th, 2024: Modified for TC PRIMED v01r01\n",
" - November 16th, 2026: Updated code to use `tcprimedapi` and new package download routine\n",
"___\n",
"\n",
"## Overview\n",
"The Tropical Cyclone Precipitation, Infrared, Microwave, and Environmental Dataset (TC PRIMED) contains satellite passive microwave data in the original swath format. To apply machine learning approaches to swath data, we must either apply it on a pixel-by-pixel basis or pre-process the swath data. If you've been following along with the notebooks in this series, you would have learned to read, visualize, and analyze TC PRIMED data, as well as how to utilize it for a pixel-based machine learning application. In this notebook, we explore one way to pre-process TC PRIMED swath data for image-based machine learning applications by regridding swath data onto a uniform grid.\n",
"\n",
"## Prerequisites\n",
"To successfully navigate and use this notebook, you should be accustomed with:\n",
"- Basics of Python programming (e.g., loading modules, variable assignment, plotting, familiarity with scientific Python packages)\n",
"- Basics of satellite data (e.g., familiarity with satellite swath data such as that from [low-Earth-orbiting](https://www.esa.int/Enabling_Support/Space_Transportation/Types_of_orbits) satellites)\n",
"- [Map projections](https://gisgeography.com/map-projections/) and grid types (e.g., Mercator, Lambert Equal Area)\n",
"- [Interpolation methods](https://gisgeography.com/raster-resampling/) (e.g., Nearest Neighbor, Gaussian Weighting, Bilinear)\n",
"\n",
"## Learning Outcomes\n",
"After working through this notebook, you should be able to:\n",
"- understanding basic satellite swath data (such as that from polar-orbiting satellites)\n",
"- execute a remapping of satellite swath data onto a discrete grid\n",
"\n",
"## Time Estimate\n",
"- Estimated text reading time: 12 to 23 min\n",
"- Estimated code reading time: 12 to 24 min\n",
"- Estimated total reading time: 24 to 47 min"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "61MOjwekWMN-"
},
"source": [
"## Background\n",
"\n",
"There are many types of satellite data in meteorological use.\n",
" Geostationary satellites have onboard sensors that view the same portion of the Earth's surface at all times. In contrast, microwave sensors are found on polar orbiting satellites. With polar orbiters, the satellite passes over certain portions of the Earth's surface as it travels around the Earth, poleward on one side and then equatorward on the opposite side, creating 'stripes' or swaths of data. During the satellite's travels, the Earth rotates underneath it, allowing the satellite swaths to cover new areas with each consecutive pass.\n",
"\n",
"TC PRIMED is a dataset centered around satellite passive microwave observations of tropical cyclones, and these data are in the form of swaths. The nature of swath data adds complexity for machine learning applications using TC PRIMED, particularly for predicting storm-scale phenomena like the presence of an eye or the current intensity. Because satellite swath data only covers a portion of the Earth at one time, putting it on a regular grid allows the data to be in a standard, consistent format for machine learning. Additionally, it allows for the combination and collocation of swath data with other satellite data, allowing you to use different types of satellite data together.\n",
"\n",
"In this notebook, we will use an existing Python package, `pyresample`, to regrid TC PRIMED swath data onto a uniform grid. This regridding process can serve as a pre-processing step in applying more complex machine learning approaches like convolutional neural networks to TC PRIMED data."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "Ol_Js_5IWMN-"
},
"source": [
"### Hurricane Florence (2018)\n",
"In this example, we will use TC PRIMED files from Hurricane Florence (2018). If you have gone through the earlier notebooks in this series, you should be familiar with Hurricane Florence. Hurricane Florence was a long-lived hurricane that tracked across the Atlantic to make landfall along the southeastern coast of North Carolina as a high-end Category 1 hurricane."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "-d8AsM5eWMN_"
},
"source": [
"\n",
"\n",
"
\n",
" ERROR: Could not find a version that satisfies the requirement [package] (from versions: none)\n",
" ERROR: No matching distribution found for [package]\n",
" \n",
" users will want downgrade their Python version to a version supported by [package].\n",
"