A repository of basic python code as a resource for the Kay lab group.
- 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. - vertical_cross_section_example_dask.ipynb
Same as above but using DASK (i.e., multiple cheyenne nodes) to speed up the computation. - 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. - output_netcdf_file.ipynb
A very simple example of loading in some CESM data and saving one timestep.
- simple_CESM_spatial_plot_xarray.ipynb
Example of extracting and making a simple spatial plot with CESM data - beautifying_spatial_plot_cartopy.ipynb
Making a plot publishing quality in cartopy.