{ "cells": [ { "cell_type": "markdown", "id": "d851a9ac-7782-483f-8c1b-98f635adc6fe", "metadata": {}, "source": [ "## Gridded data manipulation" ] }, { "cell_type": "code", "execution_count": 1, "id": "f838dc4f-b576-4a4e-a760-9bb8e5cbdb8d", "metadata": { "tags": [] }, "outputs": [], "source": [ "import lenapy\n", "import xarray as xr\n", "import numpy as np\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 2, "id": "1817b257-f748-4098-bea2-a3edc8afc305", "metadata": { "tags": [] }, "outputs": [], "source": [ "data=xr.open_dataset('../../data/ecco.nc',engine='lenapyNetcdf')" ] }, { "cell_type": "markdown", "id": "1f6f1f2e-bb7a-4e2b-bcaf-a6147b588f19", "metadata": {}, "source": [ "Ocean mean temperature and salinity" ] }, { "cell_type": "code", "execution_count": 7, "id": "4e3e3ef1-4845-4a38-9f46-9fce5a986f39", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 24B\n",
"Dimensions: ()\n",
"Coordinates:\n",
" time datetime64[ns] 8B 2010-01-16T12:00:00\n",
"Data variables:\n",
" PT float64 8B 3.497\n",
" psal float64 8B 34.73