{ "cells": [ { "cell_type": "markdown", "id": "ad7193fe-7676-47f1-abef-20260de545c2", "metadata": {}, "source": [ "# 23:00 UTC Artifact\n", "\n", "Several meteorological variables in the 5-, 15-, and 30-minute datasets exhibit an artifact causing all values in each daily 23:00–23:55 block (UTC) to be identical. This creates a stair step or notch in the time series of these variables.\n", "\n", "Affected fields include (but may not be limited to) ambient temperature, wind speed and direction, and ambient pressure. The three irradiance components are not affected." ] }, { "cell_type": "code", "execution_count": 1, "id": "b2d21a77-bd0d-435b-9ba1-a4e00d8e0488", "metadata": {}, "outputs": [], "source": [ "import pvlib\n", "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "id": "c9e5f9a5-0781-49f1-b557-4274cf5e39fc", "metadata": {}, "source": [ "Fetch an example 5-minute dataset and show that the values from 23:00 to 23:55 UTC are all the same:" ] }, { "cell_type": "code", "execution_count": 2, "id": "3114cdf3-e44e-449c-877d-fb65dc422018", "metadata": {}, "outputs": [], "source": [ "df_5min, _ = pvlib.iotools.get_psm3(latitude=40, longitude=-100,\n", " names='2020', interval=5,\n", " api_key='DEMO_KEY', email='assessingsolar@gmail.com',\n", " map_variables=True, leap_day=True)" ] }, { "cell_type": "code", "execution_count": 3, "id": "861d1169-45cd-4024-8f85-3a0ae6ea68e4", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | temp_air | \n", "wind_speed | \n", "wind_direction | \n", "pressure | \n", "
---|---|---|---|---|
2020-06-01 22:45:00+00:00 | \n", "33.9 | \n", "5.5 | \n", "174.0 | \n", "930.0 | \n", "
2020-06-01 22:50:00+00:00 | \n", "33.8 | \n", "5.5 | \n", "174.0 | \n", "930.0 | \n", "
2020-06-01 22:55:00+00:00 | \n", "33.6 | \n", "5.4 | \n", "173.0 | \n", "930.0 | \n", "
2020-06-01 23:00:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:05:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:10:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:15:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:20:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:25:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:30:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:35:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:40:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:45:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:50:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-01 23:55:00+00:00 | \n", "33.5 | \n", "5.4 | \n", "172.0 | \n", "930.0 | \n", "
2020-06-02 00:00:00+00:00 | \n", "31.2 | \n", "5.6 | \n", "169.0 | \n", "931.0 | \n", "
2020-06-02 00:05:00+00:00 | \n", "31.0 | \n", "5.6 | \n", "169.0 | \n", "931.0 | \n", "
2020-06-02 00:10:00+00:00 | \n", "30.8 | \n", "5.6 | \n", "170.0 | \n", "931.0 | \n", "
2020-06-02 00:15:00+00:00 | \n", "30.6 | \n", "5.5 | \n", "170.0 | \n", "931.0 | \n", "