Skip to content

Commit

Permalink
Merge f6d8c64 into dd17b23
Browse files Browse the repository at this point in the history
  • Loading branch information
aladinor authored Sep 5, 2024
2 parents dd17b23 + f6d8c64 commit 9396c95
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-book-pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ permissions:
contents: read

env:
DOCKER_TAG: pr_107
DOCKER_TAG: pr_106

jobs:
build-book:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
type: string # had a lot of trouble with boolean types, see https://github.com/actions/runner/issues/1483

env:
DOCKER_TAG: pr_107
DOCKER_TAG: pr_106

jobs:
build-container:
Expand Down
2 changes: 1 addition & 1 deletion binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/openradar/erad2024:pr_107
FROM ghcr.io/openradar/erad2024:pr_106
6 changes: 3 additions & 3 deletions notebooks/Analysis-Ready/ARCO-Datasets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"source": [
"\"FAIR sharing of data is beneficial for both data producers and consumers. Consumers gain access to interesting datasets that would otherwise be out of reach. Producers get citations to their work, when consumers publish their derivative work. OME-Zarr is the technology basis for enabling effective FAIR sharing of large image datasets.\" [Zarr illustrations](https://github.com/zarr-developers/zarr-illustrations-falk-2022?tab=readme-ov-file)\n",
"\n",
"<img src=\"../images/fair-reuse-300dpi.png\" width=600 alt=\"Fair\"></img>\n",
"<img src=\"../images/fair-reuse-300dpi.png\" width=400 alt=\"Fair\"></img>\n",
"\n",
"Courtesy: [Zarr illustrations](https://github.com/zarr-developers/zarr-illustrations-falk-2022?tab=readme-ov-file)"
]
Expand All @@ -176,7 +176,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<img src=\"../images/monolithic-vs-chunked-1200dpi.png\" width=500 alt=\"zarr\"></img>\n",
"<img src=\"../images/monolithic-vs-chunked-1200dpi.png\" width=400 alt=\"zarr\"></img>\n",
"\n",
"Courtesy: [Zarr illustrations](https://github.com/zarr-developers/zarr-illustrations-falk-2022?tab=readme-ov-file)"
]
Expand Down Expand Up @@ -311,7 +311,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This is store locally, but could be store in a Bucket on the cloud. Let's open it back using `Xarray.backends.api.open_datatree`"
"This is stored locally, but could be stored in a Bucket on the cloud. Let's open it back using `Xarray.backends.api.open_datatree`"
]
},
{
Expand Down
65 changes: 63 additions & 2 deletions notebooks/Analysis-Ready/QPE-QVPs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"| --- | --- | --- |\n",
"| [Intro to Xarray](https://foundations.projectpythia.org/core/xarray.html) | Necessary | Basic features |\n",
"| [Radar Cookbook](https://projectpythia.org/radar-cookbook/README.html) | Necessary | Radar basics |\n",
"|[Intro to Zarr](https://zarr.readthedocs.io/en/stable/tutorial.html)| Necessary | Zarr basics\n",
"|[Intro to Zarr](https://zarr.readthedocs.io/en/stable/tutorial.html)| Necessary | Zarr basics |\n",
"|[Intro to Hvplot](https://hvplot.holoviz.org/user_guide/Introduction.html)| Necessary | Interactive visualization basics |\n",
"\n",
"- **Time to learn**: 45 minutes"
]
Expand Down Expand Up @@ -113,7 +114,8 @@
"import fsspec\n",
"import numpy as np\n",
"import hvplot.xarray\n",
"import matplotlib.pyplot as plt"
"import matplotlib.pyplot as plt\n",
"import holoviews as hv"
]
},
{
Expand Down Expand Up @@ -271,6 +273,36 @@
"display(dsc)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's use `hvplot.quadmesh` to create interactive plots"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# set constant colorbar limits\n",
"ref_C = dsc.reflectivity.compute().hvplot.quadmesh(\n",
" x=\"x\",\n",
" y=\"y\",\n",
" groupby=\"volume_time\",\n",
" clim=(-10, 60),\n",
" cmap=\"ChaseSpectral\",\n",
" width=600,\n",
" height=500,\n",
" widget_type=\"scrubber\",\n",
" widget_location=\"bottom\",\n",
" rasterize=True,\n",
")\n",
"\n",
"ref_C"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -314,6 +346,35 @@
"display(dsx)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Interactive plot using `hvplot.quadmesh`"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# set constant colorbar limits\n",
"ref_X = dsx.DBZ.compute().hvplot.quadmesh(\n",
" x=\"x\",\n",
" y=\"y\",\n",
" groupby=\"volume_time\",\n",
" clim=(-10, 60),\n",
" cmap=\"ChaseSpectral\",\n",
" width=600,\n",
" height=500,\n",
" widget_type=\"scrubber\",\n",
" widget_location=\"bottom\",\n",
" rasterize=True,\n",
")\n",
"ref_X"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 9396c95

Please sign in to comment.