{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Problem 1.4" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Integrated Energy Grids**\n", "\n", "**Problem 1.4**\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Select one country and one city within the country. Plot the duration curve of capacity factor (CF) time series for solar PV and wind power in both cases and discuss the results. You can download solar PV and wind time series from https://model.energy/.**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As an example, we downloaded solar PV and wind power time series for Spain and Madrid from https://model.energy/ and saved it in the data folder." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will use the packages [pandas](https://pandas.org/) and [matplotlib.pyplot](https://matplotlib.org/stable/index.html) to plot the results" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import matplotlib.gridspec as gridspec" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First, we retrieve the time series. " ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | solar | \n", "onwind | \n", "
---|---|---|
time | \n", "\n", " | \n", " |
2011-01-01 00:00:00 | \n", "0.0 | \n", "0.003 | \n", "
2011-01-01 01:00:00 | \n", "0.0 | \n", "0.000 | \n", "
2011-01-01 02:00:00 | \n", "0.0 | \n", "0.000 | \n", "
2011-01-01 03:00:00 | \n", "0.0 | \n", "0.001 | \n", "
2011-01-01 04:00:00 | \n", "0.0 | \n", "0.001 | \n", "