Skip to content

A repository of basic python code as a resource. Includes some plotting, statistical analyses, and post-processing tools (interpolation, netcdf output, etc)

Notifications You must be signed in to change notification settings

jenkayco/Kay_lab_python_code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kay_lab_python_code

A repository of basic python code as a resource for the Kay lab group.

Last updated: November 1 2022

List of files and their functionality

  1. vertical_cross_section_example.ipynb Example of plotting a CESM variable in lat/height space. Interpolates from CESM sigma-hybrid coordinates to pressure coordinates. Requires PyNGL installation. Please see CAM_vertical_interpolation_python_readme.pdf (below) for instructions. This notebook also contains examples of extracting CESM variables from NetCDF files, using dictionaries, 1-line for-loops, and plotting.

  2. vertical_cross_section_example_dask.ipynb Same as above but using DASK (i.e., multiple cheyenne nodes) to speed up the computation.

  3. CAM_vertical_interpolation_python_readme.pdf Instructions for installing PyNGL & utilizing the vertical cross-section python codes above. Also describes the process of pushing/pulling from Github to make changes to a repo.

  4. output_netcdf_file.ipynb A very simple example of loading in some CESM data and saving one timestep.

  5. plot_cosp_scam_cam6.ipynb Plots outputs (including COSP2) from the MPACE SCAM case - to be used for Arctic research and for COSP2 development

  6. python_gotchas.ipynb - shows some gotchas for python programming

  7. CERES-EBAF_plot_global_map_energy_balance.ipynb Example of making a global map plot of data in netcdf format using cartopy (here data from CERES-EBAF)

  8. regridding CESM sea ice to a lat-lon grid (contributed by Patricia). See README_regrid.md for more information.

To be added eventually... (insert your idea here)

About

A repository of basic python code as a resource. Includes some plotting, statistical analyses, and post-processing tools (interpolation, netcdf output, etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • NCL 0.1%