{ "cells": [ { "cell_type": "markdown", "id": "c2fb55d1", "metadata": {}, "source": [ "(greenhouse:exercise)=\n", "# Greenhouse model" ] }, { "cell_type": "markdown", "id": "bb74f0eb", "metadata": {}, "source": [ "**Task 1**: Plug Eq. (7) into Eq. (6) and solve for the radiative equilibrium suface temperature $T_e$ " ] }, { "cell_type": "code", "execution_count": 1, "id": "217ec79c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Radiative equilibrium temperature: 254.91\n" ] } ], "source": [ "# Solve for the radiative equilibrium temperature Te\n", "# Put you own code here\n", "sigma = 5.67e-8\n", "Q = 342\n", "albedo = 0.3\n", "\n", "Te = (((1-albedo)*Q)/sigma)**(1/4)\n", "\n", "print('Radiative equilibrium temperature: {:.2f}'.format(Te))" ] }, { "cell_type": "markdown", "id": "aec37719", "metadata": {}, "source": [ "**Task 2**: Where in the atmosphere do we find $T_e$?" ] }, { "cell_type": "code", "execution_count": 2, "id": "c80a19b8", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import xarray as xr\n" ] }, { "cell_type": "code", "execution_count": 3, "id": "263016e7", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (level: 17, lat: 73, lon: 144, time: 12, nbnds: 2)\n", "Coordinates:\n", " * level (level) float32 1e+03 925.0 850.0 ... 30.0 20.0 10.0\n", " * lat (lat) float32 90.0 87.5 85.0 82.5 ... -85.0 -87.5 -90.0\n", " * lon (lon) float32 0.0 2.5 5.0 7.5 ... 352.5 355.0 357.5\n", " * time (time) object 0001-01-01 00:00:00 ... 0001-12-01 00:0...\n", "Dimensions without coordinates: nbnds\n", "Data variables:\n", " climatology_bounds (time, nbnds) object 1981-01-01 00:00:00 ... 2010-12-...\n", " air (time, level, lat, lon) float32 ...\n", " valid_yr_count (time, level, lat, lon) float32 ...\n", "Attributes:\n", " description: Data from NCEP initialized reanalysis (4...\n", " platform: Model\n", " Conventions: COARDS\n", " not_missing_threshold_percent: minimum 3% values input to have non-missi...\n", " history: Created 2011/07/12 by doMonthLTM\\nConvert...\n", " title: monthly ltm air from the NCEP Reanalysis\n", " dataset_title: NCEP-NCAR Reanalysis 1\n", " References: http://www.psl.noaa.gov/data/gridded/data...