{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Remove Climatological Mean Annual Cycle and Detrend Data \n", "\n", "\n", "\n", "This tutorial shows how to use [CDAT](https://cdat.llnl.gov) to remove the climatological mean annual cycle and detrend data - a common procedure applied prior to detailed climate data analysis of monthly anomalies.\n", "\n", "The data considered in this notebook are monthly-mean surface air temperatures gridded over the United States and spanning the years 1850 - 1990. The original dataset is complete, but it is artificially modified in this notebook by \"masking\" some values, yielding an incomplete dataset with some values \"missing\" (as is often encountered in analysis of climate data). The analysis procedure involves three major steps:\n", "\n", "1. Remove the climatological annual cycle yielding monthly-mean departures.\n", "2. Spatially average over the domain.\n", "3. Remove the time-mean and the linear trend.\n", "\n", "When there are missing values in the dataset (as in the sample calculations below), the final detrended time-series will depend on the order in which these steps are executed. Here we examine options for detrending the data, and we show that slightly different results are generated depending on the order in which operations are performed. More sophisticated treatments (not discussed here) involving appropriately weighting samples and collections of samples should be considered for datasets that only sparsely cover the time and space domains.\n", "\n", "\n", "To [download this Jupyter Notebook](Detrend_data.ipynb), right click on the link and choose \"Download Linked File As...\" or \"Save Link as...\". Remember where you saved the downloaded file, which should have an .ipynb extension. (You'll need to launch the Jupyter notebook or JupyterLab instance from the location where you store the notebook file.)" ] }, { "cell_type": "markdown", "metadata": { "toc": true }, "source": [ "