Skip to content

Commit

Permalink
Merge pull request #10 from NicholasCote/develop_negin
Browse files Browse the repository at this point in the history
adding some minor edits
  • Loading branch information
negin513 authored Jun 14, 2024
2 parents fabc490 + 513714a commit 7cb01d0
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions notebooks/03_intro_to_interactive_viz_hvplot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"id": "e5b8ce18-19f4-4535-b764-684402d18275",
"metadata": {},
"source": [
"# Creating a Basic Interactive Dashboard with `hvPlot` and `Panel`"
"<img src=\"images/ProjectPythia_Logo_Final-01-Blue.svg\" width=250 alt=\"Project Pythia Logo\"> \n",
"\n",
"# Creating a Basic Interactive Dashboard with `hvPlot`"
]
},
{
Expand All @@ -15,12 +17,12 @@
"source": [
"## Overview\n",
"\n",
"Interactive visualuzation is ...\n",
"ERA-5 Dataset is available from NCAR RDA in netcdf format. A subset of this dataset is processed into Zarr format and available from NCAR RDA endpoints. To learn how you can create Zarr files from NCAR RDA netcdf files, please see [this notebook](./05_data_preprocessing.ipynb).\n",
"\n",
"\n",
"By the end of this notebook, you should be able to:\n",
"* Understand the necessecity for interactive plots and the challenges associated with them\n",
"* Use `hvPlot` to generate basic interactive plots with `Xarray`\n",
"* Create an interactive dashboard for visualuzing geoscience datasets using `Panel` and `hvPlot`"
"* Understand the importance for interactive plots and the challenges associated with them\n",
"* Use `hvPlot` to generate basic interactive plots with `Xarray`"
]
},
{
Expand Down Expand Up @@ -56,9 +58,6 @@
"outputs": [],
"source": [
"import xarray as xr\n",
"\n",
"import panel as pn\n",
"\n",
"import holoviews as hv\n",
"from holoviews import opts\n",
"\n",
Expand All @@ -72,7 +71,7 @@
"source": [
"## Data\n",
"\n",
"As was discussed in the Data Aquisition ... "
"As we mentioned above a subset of NCAR RDA data is available in Zarr format. "
]
},
{
Expand All @@ -87,10 +86,7 @@
"rda_url = 'https://data.rda.ucar.edu/'\n",
"annual_means = rda_url + 'pythia_era5_24/annual_means/'\n",
"xrds = xr.open_dataset(annual_means + \"temp_2m_annual_1940_2023.zarr\", engine= 'zarr')\n",
"xrds.load()\n",
"\n",
"xrds['VAR_2T_ANOM_FROM_1940'] = xrds['VAR_2T'] - xrds['VAR_2T'][0]\n",
"xrds"
"xrds.load()\n"
]
},
{
Expand Down Expand Up @@ -553,7 +549,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 7cb01d0

Please sign in to comment.