{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Geomagnetic Model Residuals\n", "\n", "> Abstract: An exploration of geomagnetic data-model residuals evaluated through VirES (along Swarm orbits)." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2024-01-24T17:48:35.652996Z", "iopub.status.busy": "2024-01-24T17:48:35.652605Z", "iopub.status.idle": "2024-01-24T17:48:36.719055Z", "shell.execute_reply": "2024-01-24T17:48:36.718356Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Python implementation: CPython\n", "Python version : 3.11.6\n", "IPython version : 8.18.0\n", "\n", "viresclient: 0.11.6\n", "pandas : 2.1.3\n", "xarray : 2023.12.0\n", "matplotlib : 3.8.2\n", "\n" ] } ], "source": [ "%load_ext watermark\n", "%watermark -i -v -p viresclient,pandas,xarray,matplotlib" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "execution": { "iopub.execute_input": "2024-01-24T17:48:36.721592Z", "iopub.status.busy": "2024-01-24T17:48:36.721023Z", "iopub.status.idle": "2024-01-24T17:48:36.962034Z", "shell.execute_reply": "2024-01-24T17:48:36.961447Z" } }, "outputs": [], "source": [ "from viresclient import SwarmRequest\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## One day of residuals\n", "\n", "(data minus a core field model)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2024-01-24T17:48:36.964386Z", "iopub.status.busy": "2024-01-24T17:48:36.964198Z", "iopub.status.idle": "2024-01-24T17:48:38.581924Z", "shell.execute_reply": "2024-01-24T17:48:38.581333Z" } }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (Timestamp: 17280, NEC: 3)\n", "Coordinates:\n", " * Timestamp (Timestamp) datetime64[ns] 2019-01-01 ... 2019-01-0...\n", " * NEC (NEC) <U1 'N' 'E' 'C'\n", "Data variables:\n", " Spacecraft (Timestamp) object 'A' 'A' 'A' 'A' ... 'A' 'A' 'A' 'A'\n", " MLT (Timestamp) float64 14.8 14.79 14.79 ... 2.419 2.419\n", " B_NEC_res_CHAOS-Core (Timestamp, NEC) float64 -12.93 -19.23 ... 5.861 7.215\n", " Radius (Timestamp) float64 6.819e+06 6.819e+06 ... 6.809e+06\n", " Latitude (Timestamp) float64 -17.03 -16.71 ... 44.51 44.19\n", " SunZenithAngle (Timestamp) float64 40.87 40.97 41.08 ... 141.0 141.1\n", " QDLat (Timestamp) float64 -13.95 -13.63 ... 40.36 40.02\n", " Longitude (Timestamp) float64 -136.0 -136.0 ... 40.87 40.88\n", "Attributes:\n", " Sources: ['SW_OPER_MCO_SHA_2X_19970101T000000_20240207T235959_071...\n", " MagneticModels: ["CHAOS-Core = 'CHAOS-Core'(max_degree=20,min_degree=1)"]\n", " AppliedFilters: []