Visualization and analysis examples

From Geos-chem
Jump to: navigation, search

Previous | Next | Getting Started with GEOS-Chem

  1. Minimum system requirements
  2. Configuring your computational environment
  3. Downloading source code
  4. Downloading data directories
  5. Creating run directories
  6. Configuring runs
  7. Compiling
  8. Running
  9. Output files
  10. Visualizing and processing output
  11. Coding and debugging
  12. Further reading


Plotting

We have created several Python plotting example scripts and notebooks that you can modify for your own research needs.

Comparing diagnostics from different simulations

Script or notebook Author Description
compare_diagnostics.ipynb Lizzie Lundgren (Harvard) Jupyter notebook that illustrates the steps involved in comparing output from two different GEOS-Chem simulations.

Plotting timeseries data

Script or notebook Author Description
plot_timeseries.py Bob Yantosca (Harvard) Example script that plots timeseries from two different GEOS-Chem diagnostic collections (ConcAboveSfc, SpeciesConc) at a specified location. This is a good example of the using Python xarray and matplotlib packages to create line plots.

Plotting 2D data

Script or notebook Author Description
plot_global.py Daniel Rothenberg Creates a global average plot. Using cartopy_ we can easily visualize gridded model output on maps with different cartographic projections, and then configure them with any aesthetics or features such as continents, geopolitical borders, gridlines, and more.
plot_seasons.py Daniel Rothenberg For a given field timeseries, compute seasonal averages over all data and plot each average on a four-panel figure.
quickplot.py Bob Yantosca (Harvard) Creates a quick-and-dirty plot of a variable in a netCDF (HDF5, GRIB, etc. file). Uses xarray.

Working with files

Please see the following scripts for examples on using Python to manipulate files.

Script or notebook Author Description
bpch2nc.py Bob Yantosca (Harvard) Creates a netCDF file from data contained in a GEOS-Chem binary punch (aka "bpch") file.
concatenate_files.py Bob Yantosca (Harvard) Uses xarray to concatenate several files into a single Dataset.



[[Other tools for visualizing and analyzing GEOS-Chem output]|Previous]] | Next | Getting Started with GEOS-Chem