{ "cells": [ { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "from datetime import timedelta, datetime\n", "import xarray as xr\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import matplotlib\n", "\n", "from matplotlib.animation import FuncAnimation\n", "import matplotlib.animation as animation\n", "\n", "from IPython.display import HTML\n", "\n", "import cartopy\n", "import cartopy.crs as ccrs\n", "from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER\n", "import matplotlib.ticker as mticker\n", "import cartopy.feature as cfeature\n" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The autoreload extension is already loaded. To reload it, use:\n", " %reload_ext autoreload\n", "The version_information extension is already loaded. To reload it, use:\n", " %reload_ext version_information\n" ] }, { "data": { "application/json": { "Software versions": [ { "module": "Python", "version": "3.6.11 64bit [GCC Clang 11.0.0]" }, { "module": "IPython", "version": "7.16.1" }, { "module": "OS", "version": "Darwin 21.3.0 x86_64 i386 64bit" }, { "module": "numpy", "version": "1.19.2" }, { "module": "matplotlib", "version": "3.3.2" }, { "module": "xarray", "version": "0.16.2" }, { "module": "cartopy", "version": "0.18.0" } ] }, "text/html": [ "
| Software | Version |
|---|---|
| Python | 3.6.11 64bit [GCC Clang 11.0.0] |
| IPython | 7.16.1 |
| OS | Darwin 21.3.0 x86_64 i386 64bit |
| numpy | 1.19.2 |
| matplotlib | 3.3.2 |
| xarray | 0.16.2 |
| cartopy | 0.18.0 |
| Fri Mar 11 12:40:22 2022 CET | |
<xarray.Dataset>\n",
"Dimensions: (obs: 673, traj: 12657)\n",
"Dimensions without coordinates: obs, traj\n",
"Data variables:\n",
" trajectory (traj, obs) float64 ...\n",
" time (traj, obs) datetime64[ns] ...\n",
" lat (traj, obs) float64 ...\n",
" lon (traj, obs) float64 ...\n",
" z (traj, obs) float64 ...\n",
"Attributes:\n",
" feature_type: trajectory\n",
" Conventions: CF-1.6/CF-1.7\n",
" ncei_template_version: NCEI_NetCDF_Trajectory_Template_v2.0\n",
" parcels_version: 2.2.2.dev126+g6dd05b7\n",
" parcels_mesh: spherical[8518161 values with dtype=float64]
[8518161 values with dtype=datetime64[ns]]
[8518161 values with dtype=float64]
[8518161 values with dtype=float64]
[8518161 values with dtype=float64]