{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Guided exercise: Energy Transport" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this guided exercise we will revisit the energy balance, this time with ERA5 data instead of CERES. The main novelty of this lesson is **the computation of the meridional energy transport** from the TOA, using the numerical methods we learned last week. The code is on me, the questions are on you! Like always, I recommend to download this notebook and run it by yourself instead of reading it online." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# Import the tools we are going to need today:\n", "import matplotlib.pyplot as plt # plotting library\n", "import numpy as np # numerical library\n", "import xarray as xr # netCDF library\n", "import cartopy # Map projections libary\n", "import cartopy.crs as ccrs # Projections list\n", "# Some defaults:\n", "plt.rcParams['figure.figsize'] = (12, 5) # Default plot size" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Data " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We are going to work with a new file: [ERA5_LowRes_AnnualAvg_eb.nc](https://cluster.klima.uni-bremen.de/~fmaussion/teaching/climate/ERA5_LowRes_AnnualAvg_eb.nc)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "ds = xr.open_dataset('../data/ERA5_LowRes_AnnualAvg_eb.nc')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Q: explore the data file. Some variables of the surface and TOA energy balance are missing, but they can be retrieved from the others: which ones?**" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (longitude: 480, latitude: 241)\n", "Coordinates:\n", " * longitude (longitude) float32 -179.6 -178.9 -178.1 ... 178.1 178.9 179.6\n", " * latitude (latitude) float32 90.0 89.25 88.5 87.75 ... -88.5 -89.25 -90.0\n", "Data variables:\n", " slhf (latitude, longitude) float64 ...\n", " sshf (latitude, longitude) float64 ...\n", " ssr (latitude, longitude) float64 ...\n", " str (latitude, longitude) float64 ...\n", " ssrd (latitude, longitude) float64 ...\n", " strd (latitude, longitude) float64 ...\n", " tisr (latitude, longitude) float64 ...\n", " tsr (latitude, longitude) float64 ...\n", " ttr (latitude, longitude) float64 ...