Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Visualization of JEDI analysis with UXarray in the model space

JEDI

In this section, you’ll learn:

  • Utilizing UXarry to compute analysis increments, visualize increments in horizontal and vertical cross sections

Prerequisites

ConceptsImportanceNotes
Atmospheric Data AssimilationHelpful

Time to learn: 10 minutes
Readers may check pyDAmonitor for more information


Import packages

CPU times: user 286 ms, sys: 57.7 ms, total: 343 ms
Wall time: 279 ms
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 get_ipython().run_cell_magic('time', '', '\n# autoload external python modules if they changed\n%load_ext autoreload\n%autoreload 2\n\n# add ../funcs to the current path\nimport sys, os\nsys.path.append(os.path.join(os.getcwd(), "..")) \n\n# import modules\nimport warnings\nimport math\n\nimport cartopy.crs as ccrs\nimport geoviews as gv\nimport geoviews.feature as gf\nimport holoviews as hv\nimport hvplot.xarray\nfrom holoviews import opts\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import ListedColormap\n\nimport s3fs\n\nimport geopandas as gp\nimport numpy as np\nimport uxarray as ux\nimport xarray as xr\n')

File <timed exec>:14

ModuleNotFoundError: No module named 'geoviews'

Configure visualization tools

Retrieve/load MPAS/JEDI data

The example MPAS/JEDI data are stored at jetstream2. We need to retreive those data first.
There are two ways to retrieve MPAS data:

    1. Download all example data from JetStream2 to local and them load them locally. This approach allows downloading the data once per machine and reuse it in notebooks.

    1. Stream the JetStream2 S3 objects on demand. In this case, each notebook (including restarting a notebook) will retrieve the required data separately as needed.

Method 1: Download all example data once and reuse it in mulptile notebooks

Method 2: Stream the JetStream2 S3 objects on demand

Loading the data into UXarray datasets

We use the UXarray data structures for working with the data. This package supports data defined over unstructured grid and provides utilities for modifying and visualizing it. The available fucntionality are discussed in UxDataset documentation.

Compute the analysis increments from the JEDI data assimilation

JEDI updates the background atmospheric state (uxds_b) with observation innovations and gets a new atmospheric state called analysis (uxds_a).
The difference of uxds_a - uxds_b is called “analysis increments”

Horizontal cross sections of analysis increments at different vertical levels

define hcross_contour(..) and customize contour levels and color maps

plot analysis increments at different vertical levels

Zoomed into Colorado using the subset capability

Vertical cross sections of analysis increments along an arbitary line (Great Circle Arc, GCA), a constnat laitude/longigutde

Along an arbitary line ( Great Circle Arc, GCA)

Along a constant longitude

Along a constant latitude