{ "cells": [ { "cell_type": "code", "execution_count": 11, "id": "f741bd0b-0743-4f7f-9bc5-9c4d54109fdc", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Populating the interactive namespace from numpy and matplotlib\n" ] } ], "source": [ "%pylab inline\n", "from matplotlib.animation import FuncAnimation\n", "import cartopy\n", "import xarray as xr\n", "import cmocean.cm as cmo\n", "import cartopy.crs as ccrs" ] }, { "cell_type": "markdown", "id": "a8155155-7c40-4192-982d-f381e408ab72", "metadata": {}, "source": [ "### Load the ERA5 data" ] }, { "cell_type": "code", "execution_count": 6, "id": "6c0e600a-175e-419b-95f3-1556f0f0c5f5", "metadata": {}, "outputs": [], "source": [ "path = '/Volumes/GoogleDrive/My Drive/Projects/duplessis-2021-turbulent-heatflux/data/'\n", "files = ['era5_airT_012019',\n", " 'era5_airT_022019'\n", " ]\n", "\n", "ds = xr.open_mfdataset(path+'era5_airT*.nc')" ] }, { "cell_type": "code", "execution_count": 8, "id": "57d73473-7309-4361-89b5-1a9df16e9aa9", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (latitude: 361, longitude: 1440, time: 1416)\n", "Coordinates:\n", " * longitude (longitude) float32 0.0 0.25 0.5 0.75 ... 359.0 359.2 359.5 359.8\n", " * latitude (latitude) float32 0.0 -0.25 -0.5 -0.75 ... -89.5 -89.75 -90.0\n", " * time (time) datetime64[ns] 2019-01-01 ... 2019-02-28T23:00:00\n", "Data variables:\n", " t2m (time, latitude, longitude) float32 dask.array<chunksize=(744, 361, 1440), meta=np.ndarray>\n", "Attributes:\n", " Conventions: CF-1.6\n", " history: 2021-10-20 19:09:56 GMT by grib_to_netcdf-2.23.0: /opt/ecmw...
array([0.0000e+00, 2.5000e-01, 5.0000e-01, ..., 3.5925e+02, 3.5950e+02,\n", " 3.5975e+02], dtype=float32)
array([ 0. , -0.25, -0.5 , ..., -89.5 , -89.75, -90. ], dtype=float32)
array(['2019-01-01T00:00:00.000000000', '2019-01-01T01:00:00.000000000',\n", " '2019-01-01T02:00:00.000000000', ..., '2019-02-28T21:00:00.000000000',\n", " '2019-02-28T22:00:00.000000000', '2019-02-28T23:00:00.000000000'],\n", " dtype='datetime64[ns]')
\n",
"
| \n",
"\n", "\n", " | \n", "