{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## F10.7 comparison\n", "\n", "This notebook compares F10.7 values form `AUX_IMF_2_` (OMNI daily averages) and `AUX_F10_2_`." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# load data from VirES server\n", "from eoxmagmod.data import CHAOS6_CORE_LATEST as CUSTOM_SHC_FILE\n", "from viresclient import SwarmRequest" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Step 1. Data retrieval" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[1/1] Processing: 100%|██████████| [ Elapsed: 00:09, Remaining: 00:00 ]\n", " Downloading: 100%|██████████| [ Elapsed: 00:00, Remaining: 00:00 ] (10.776MB)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Dimensions: (Timestamp: 218880)\n", "Coordinates:\n", " * Timestamp (Timestamp) datetime64[ns] 2016-01-01 ... 2016-05-31T23:59:00\n", "Data variables:\n", " Spacecraft (Timestamp) " ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "from matplotlib.pyplot import figure, subplot, show\n", "\n", "\n", "time = data[\"Timestamp\"].values\n", "f107_imf = data[\"F10_INDEX\"].values # AUX_IMF_2_ (OMNY daily average)\n", "f107_f10 = data[\"F107\"].values # AUX_F10_2_ (observed F10.7)\n", "\n", "fig = figure(figsize=(12, 6), dpi=100)\n", "ax = subplot(111)\n", "ax.plot(time, f107_imf, label=\"F10_INDEX (AUX_IMF_2_)\")\n", "ax.plot(time, f107_f10, label=\"F107 (AUX_F10_2_)\")\n", "ax.grid()\n", "ax.set_xlabel('time')\n", "ax.set_ylabel('F10.7')\n", "ax.legend()\n", "show()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3.7 (conda)", "language": "python", "name": "python_3.7_conda" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0" } }, "nbformat": 4, "nbformat_minor": 2 }