Skip to content

Commit

Permalink
DRAFT: Notebook Revisions, Xarray vs UXarray Section, Customization S…
Browse files Browse the repository at this point in the history
…ection (#11)

* work on xarray notebook, updates to plot-api

* restart and clear output from notebooks

* update _toc.yml

* update xarray-to-uxarray notebook

* update xarray-to-uxarray notebook

* update notebooks

* update notebooks

* update notebooks

* update notebooks

* update xarray notebook

* update images

* notebook updates

* update notebooks

* notebook updates

* fix typos

* update polygon plot section

* notebook revisions

* update notebooks

* clear outputs

* fix typo
  • Loading branch information
philipc2 authored Apr 16, 2024
1 parent c357cc7 commit cb1213f
Show file tree
Hide file tree
Showing 18 changed files with 986 additions and 12,854 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ This Cookbook is a comprehensive showcase of workflows & techniques for visualiz

## Motivation

High-level, scalable visualizations of native unstructured grids is a much-needed ability in the Scientific Python Ecosystem. To achieve this, the process needs to:
The ability to natively visualize unstructured grids is a much-needed ability within the Scientific Python Ecosystem,
which poses multiple challenges and needs to:

- Not regrid the unstructured grids into structured grids
- Use provided information such as connectivity variables that come with the grid
- Not regrid the source unstructured grid to structure
- Take advantage of grid information, such as connectivity variables
- Limit the amount of pre-processing needed to prepare the data for Python visualization tools

UXarray enables such visualization methods that operate directly on unstructured grid data,
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Comprehensive showcase of workflows and techniques for visualizing
author: the <a href="https://projectpythia.org/">Project Pythia</a> Community
logo: notebooks/images/logos/pythia_logo-white-rtext.svg
copyright: "2024"

execute:
# To execute notebooks via a Binder instead, replace 'cache' with 'binder'
execute_notebooks: cache
Expand Down Expand Up @@ -44,7 +44,7 @@ sphinx:
use_fullscreen_button: true
analytics:
google_analytics_id: G-T52X8HNYE8
github_url: https://github.com/ProjectPythia
github_url: https://github.com/ProjectPythia/unstructured-grid-viz-cookbook
twitter_url: https://twitter.com/project_pythia
icon_links:
- name: YouTube
Expand Down
4 changes: 2 additions & 2 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ parts:
- caption: UXarray Visualization
chapters:
- file: notebooks/03-uxarray-vis/01-plot-api
- file: notebooks/03-uxarray-vis/002-xarray-to-uxarray
- file: notebooks/03-uxarray-vis/02-grid-topology
- file: notebooks/03-uxarray-vis/03-polygons
- file: notebooks/03-uxarray-vis/04-points
- file: notebooks/03-uxarray-vis/05-triangles
- file: notebooks/03-uxarray-vis/06-performance
- file: notebooks/03-uxarray-vis/07-animations
- file: notebooks/03-uxarray-vis/06-performance
Binary file added meshfiles/outCSne30.structured.nc
Binary file not shown.
12 changes: 1 addition & 11 deletions notebooks/01-intro/01-unstructured-grid-overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@
"4. Why UXarrary for unstructured grids?"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -319,7 +309,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.5"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
2 changes: 1 addition & 1 deletion notebooks/01-intro/02-data-structures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.11.5"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
2 changes: 1 addition & 1 deletion notebooks/01-intro/03-data-mapping.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.11.5"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
2 changes: 1 addition & 1 deletion notebooks/02-methods/01-plotting-libraries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.5"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
9 changes: 1 addition & 8 deletions notebooks/02-methods/02-rendering-techniques.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,6 @@
" A more comprehensive showcase of rasterization can be found <a href=\"https://learn.microsoft.com/en-us/windows/win32/direct3d11/d3d10-graphics-programming-guide-rasterizer-stage-rules\">here</a>\n",
"</div>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -282,7 +275,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.5"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
Loading

0 comments on commit cb1213f

Please sign in to comment.