unstructured-grid-viz-cookbook
Cookbook showcasing workflows & techniques for visualizing unstructured grids using the UXarray python package
https://github.com/projectpythia/unstructured-grid-viz-cookbook
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.3%) to scientific vocabulary
Keywords
Repository
Cookbook showcasing workflows & techniques for visualizing unstructured grids using the UXarray python package
Basic Info
- Host: GitHub
- Owner: ProjectPythia
- License: apache-2.0
- Language: Jupyter Notebook
- Default Branch: main
- Homepage: https://projectpythia.org/unstructured-grid-viz-cookbook/
- Size: 600 MB
Statistics
- Stars: 7
- Watchers: 7
- Forks: 5
- Open Issues: 4
- Releases: 2
Topics
Metadata Files
README.md
Unstructured Grid Visualization Cookbook
This Cookbook is a comprehensive showcase of workflows & techniques for visualizing Unstructured Grids using UXarray, also providing foundational information on unstructured grids.
Motivation
The ability to natively visualize unstructured grids is much needed within the Scientific Python Ecosystem, which poses multiple challenges and needs to:
- Not regrid the source unstructured grid to structured grid
- 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, providing Xarray-styled functionality to better read in and use unstructured grid datasets that follow standard conventions.
UXarray supports a variety of unstructured grid formats and file types including UGRID, MPAS, ICON, CAM-SE, SCRIP, Exodus, ESMF, GEOS, and FESOM2, and is extensible for other formats.
This cookbook covers an introduction to unstructured grids and UXarray from a visualization standpoint, providing foundational information about unstructured grids, visualization methods and libraries, and introducing UXarray, and showcasing several UXarray visualization functions and workflows.
Authors
Rajeev Jain (Argonne National Laboratory)
Ian Franda (University of Wisconsin-Madison)
Rachel Tam (University of Illinois Urbana-Champaign)
Contributors
Structure
This cookbook is split up into several chapters to communicate the content efffectively with different levels of readers:
1. Foundations
Here, we cover overview of the foundational topics necessary to understand the content in this cookbook, e.g. what unstructured grids are and how they are different than structured grids, what plotting libraries and visualization techniques exist that can be helpful for unstructured grid visualization, and we briefly mention how UXarray is related to these.
2. Introduction to UXarray
In this chapter, we provide an overview of UXarray: An Xarray-extension for unstructured grid-formatted climate and global weather data analysis and visualization.
3. Plotting with UXarray
We provide an overview of the UXarray plotting API along with several visualization functionality, and cases and examples that can be realized using such UXarray functionality; Grid visualization, Data visualization, Geographic projections and features, to name a few. Also in this section, customization and interactivaity with UXarray plotting and considerations with high-resolution plotting are also provided.
4. Visualization Recipies
In this last chapter, we offer to the interested readers a set of focused workflows that can be realized with UXarray, including visualizations of MPAS and E3SM model output.
Running the Notebooks
You can either run the notebook using Binder or on your local machine.
Running on Binder
The simplest way to interact with a Jupyter Notebook is through
Binder, which enables the execution of a
Jupyter Book in the cloud. The details of how this works are not
important for now. All you need to know is how to launch a Pythia
Cookbooks chapter via Binder. Simply navigate your mouse to
the top right corner of the book chapter you are viewing and click
on the rocket ship icon, (see figure below), and be sure to select
“launch Binder”. After a moment you should be presented with a
notebook that you can interact with. I.e. you’ll be able to execute
and even change the example programs. You’ll see that the code cells
have no output at first, until you execute them by pressing
{kbd}Shift+{kbd}Enter. Complete details on how to interact with
a live Jupyter notebook are described in Getting Started with
Jupyter.
Running on Your Own Machine
If you are interested in running this material locally on your computer, you will need to follow this workflow:
- Clone the
https://github.com/ProjectPythia/unstructured-grid-viz-cookbookrepository:
bash
git clone https://github.com/ProjectPythia/unstructured-grid-viz-cookbook.git
- Move into the
unstructured-grid-viz-cookbookdirectorybash cd unstructured-grid-viz-cookbook - Create and activate your conda environment from the
environment.ymlfilebash conda env create -f environment.yml conda activate unstructured-grid-viz-cookbook-dev - Move into the
notebooksdirectory and start up Jupyterlabbash cd notebooks/ jupyter lab
Owner
- Name: Project Pythia
- Login: ProjectPythia
- Kind: organization
- Email: projectpythia@ucar.edu
- Location: United States of America
- Website: projectpythia.org
- Twitter: Project_Pythia
- Repositories: 21
- Profile: https://github.com/ProjectPythia
Community learning resource for Python-based computing in the geosciences
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this cookbook, please cite it as below."
authors:
# add additional entries for each author -- see https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md
- family-names: Eroglu
given-names: Orhan
orcid: https://orcid.org/0000-0003-3099-8775
website: https://github.com/erogluorhan
affiliation: NSF NCAR
- family-names: Chmielowiec
given-names: Philip
website: https://github.com/philipc2
affiliation: NSF NCAR
- family-names: Jain
given-names: Rajeev
orcid: https://orcid.org/0000-0002-1235-918X
website: https://github.com/rajeeja
affiliation: Argonne National Laboratory
- family-names: Franda
given-names: Ian
website: https://github.com/ifranda
affiliation: University of Wisconsin-Madison
- name: "Unstructured Grids Visualization Cookbook contributors" # use the 'name' field to acknowledge organizations
website: "https://github.com/ProjectPythia/unstructured-grid-viz-cookbook/graphs/contributors"
title: "Unstructured Grids Visualization Cookbook"
abstract: "This Cookbook is a comprehensive showcase of workflows & techniques for visualizing Unstructured Grids using UXarray"
GitHub Events
Total
- Issues event: 12
- Watch event: 5
- Delete event: 5
- Issue comment event: 23
- Push event: 159
- Pull request review event: 5
- Pull request event: 21
- Fork event: 2
- Create event: 6
Last Year
- Issues event: 12
- Watch event: 5
- Delete event: 5
- Issue comment event: 23
- Push event: 159
- Pull request review event: 5
- Pull request event: 21
- Fork event: 2
- Create event: 6
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 10
- Average time to close issues: 2 months
- Average time to close pull requests: 24 days
- Total issue authors: 2
- Total pull request authors: 5
- Average comments per issue: 0.14
- Average comments per pull request: 2.1
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 7
- Pull requests: 10
- Average time to close issues: 2 months
- Average time to close pull requests: 24 days
- Issue authors: 2
- Pull request authors: 5
- Average comments per issue: 0.14
- Average comments per pull request: 2.1
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- philipc2 (6)
- kafitzgerald (2)
- erogluorhan (1)
Pull Request Authors
- erogluorhan (6)
- philipc2 (3)
- jukent (3)
- dependabot[bot] (2)
- kafitzgerald (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- jacobtomlinson/gha-find-replace v3 composite
- stefanzweifel/git-auto-commit-action v4 composite
- cartopy
- dask
- datashader
- geoviews
- holoviews
- hvplot
- jupyter-book
- jupyterlab
- matplotlib-base
- netcdf4
- numba
- numpy
- pandas
- pathlib
- pip
- pre_commit
- pyarrow
- pytest
- pytest-cov
- requests
- scikit-learn
- scipy
- shapely
- spatialpandas
- sphinx-pythia-theme
- uxarray
- xarray