na-cordex-viz-cookbook
Project Pythia Cookbook for NA-CORDEX data visualization
Science Score: 54.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
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.3%) to scientific vocabulary
Repository
Project Pythia Cookbook for NA-CORDEX data visualization
Basic Info
- Host: GitHub
- Owner: ProjectPythia
- License: apache-2.0
- Language: Jupyter Notebook
- Default Branch: main
- Homepage: https://projectpythia.org/na-cordex-viz-cookbook/
- Size: 31 MB
Statistics
- Stars: 2
- Watchers: 3
- Forks: 6
- Open Issues: 1
- Releases: 2
Metadata Files
README.md
NA-CORDEX Data Visualization Cookbook
![]()
The NA-CORDEX data archive contains cloud-optimized, Zarr-based output from regional climate models (RCMs) run over a domain covering most of North America using boundary conditions from global climate model (GCM) simulations in the CMIP5 archive. These simulations run from 1950–2100 with a spatial resolution of 0.22°/25km or 0.44°/50km. Data is available for impacts-relevant variables at daily and longer frequencies.
This Project Pythia Cookbook covers how to load and view data summaries from the NA-CORDEX dataset.
- Complete documentation for the cloud-optimized version of the NA-CORDEX dataset can be found here: https://na-cordex.org/na-cordex-on-aws.html
- More information on the scope and objectives for NA-CORDEX can be found here: https://na-cordex.org/index.html
Motivation
This cookbook provides useful methods for summarizing data values in large climate datasets. It clearly shows where data have extreme values and where data are missing; this can be useful for validating that the data were gathered and stored correctly. While this cookbook is specifically designed to examine any portion of the NA-CORDEX dataset using an intake catalog, the code can be adapted straightforwardly to other datasets that can be loaded via xarray.
The main python packages used are xarray, intake-esm, dask, and matplotlib.
Authors
Brian Bonnlander, Seth McGinnis
Contributors
Structure
This cookbook is a single notebook broken into several sections. The first section allows users to tailor the notebook to their chosen computing environment and storage cloud. Other sections contain code for subsetting and plotting data, obtaining Dask workers, and producing summary plots.
Select User Options
Users may choose the value of several boolean switches:
- Cloud storage provider (Amazon AWS or NCAR),
- Whether to truncate the data if running on a resource-limited computer,
- Whether to obtain a Dask cluster from a PBS Scheduler or via the Dask Gateway package.
Note: Using the NCAR cloud storage system requires a login account on an NCAR HPC computer.
Create and Connect to Dask Distributed Cluster
This section shows several possible ways to create and connect to a Dask cluster for processing data in parallel.
The user can choose to obtain workers using a PBS Scheduler, Dask Gateway, or a dask LocalCluster.
Find and Obtain Data Using an Intake Catalog
This section shows how to interact with an Intake-ESM catalog to find, select, and open datasets via xarray.
Functions for Subsetting and Plotting
This section provides python functions for subsetting and plotting data. They rely on the xarray and matplotlib packages, and can be generalized to other climate datasets.
Produce Diagnostic Plots
This section produces the diagnostic plots. It shows how to produce timing information and gives options for saving high-resolution images of the resulting plots.
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/na-cordex-viz-cookbookrepository:
bash
git clone https://github.com/ProjectPythia/na-cordex-viz-cookbook.git
- Move into the
na-cordex-viz-cookbookdirectorybash cd na-cordex-viz-cookbook - Create and activate your conda environment from the
environment.ymlfile
bash
conda env create -f environment.yml
conda activate na-cordex-viz-cookbook
Note: If building the environment stalls using conda, consider instead installing the mamba package and using mamba env create -f environment.yml.
- 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: Bonnlander
given-names: Brian
website: https://github.com/bonnland
- family-names: McGinnis
given-names: Seth
- family-names: Banihirwe
given-names: Anderson
orcid: https://orcid.org/0000-0001-6583-571X
website: https://github.com/andersy005
- family-names: Nienhouse
given-names: Eric
- family-names: de La Beaujardière
given-names: Jeff
affiliation: Former Director, NCAR/CISL Information Systems Division
website: https://staff.ucar.edu/users/jeffdlb
orcid: https://orcid.org/0000-0002-1001-9210
- name: "NA-CORDEX Visualization Cookbook contributors" # use the 'name' field to acknowledge organizations
website: "https://github.com/ProjectPythia/na-cordex-viz-cookbook/graphs/contributors"
title: "NA-CORDEX Visualization Cookbook"
abstract: "A notebook for visualizing data from the NA-CORDEX dataset."
GitHub Events
Total
- Delete event: 1
- Issue comment event: 1
- Push event: 20
- Pull request event: 1
- Create event: 1
Last Year
- Delete event: 1
- Issue comment event: 1
- Push event: 20
- Pull request event: 1
- Create event: 1