Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key metrics #118

Merged
merged 12 commits into from
Jul 31, 2024
Merged

Key metrics #118

merged 12 commits into from
Jul 31, 2024

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    171d800 View commit details
    Browse the repository at this point in the history
  2. Add glacier notebook to nblibrary

    This is the first notebook that runs under the key_metric example
    mnlevy1981 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    814ea68 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. LIWG notebook cleanup

    Removed the CESM3 vs CESM2 comparison section, refactored code to avoid
    duplication.
    
    Still to do: create utils.py so additional notebooks can share these refactored
    functions. Probably some other code clean-up as well...
    mnlevy1981 committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    4917465 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Pull functions out of glacier notebook

    Created a single utils module for now
    mnlevy1981 committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    b5e1150 View commit details
    Browse the repository at this point in the history
  2. Remove unused import

    mnlevy1981 committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    3df4d5e View commit details
    Browse the repository at this point in the history
  3. Cleaned up glacier notebook a little more

    1. Reorganized cells and added markdown headers (parameter configuration, set
    up grid, make datasets, generate plots).
    2. Fixed issue with plotting base maps (tested by comparing first 40 years of
    run to last 40 years of run)
    3. Added years included in climatology to the title of plots
    mnlevy1981 committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    f1b015d View commit details
    Browse the repository at this point in the history
  4. Update book_toc section of config.yml

    Commented out the atmosphere, ocean, land, and sea ice section definitions and
    added a section for land ice.
    mnlevy1981 committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    e9ddda3 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. First steps towards using xarray

    Started replacing netcdf4 calls with xarray equivalents. I think the
    observational dataset read is still entirely netcdf4-based, so that needs to be
    updated. Also, I want to try calling xr.open_mfdataset() once per case and then
    passing datasets rather than doing the read twice (once for temporal mean, once
    for spatial mean).
    mnlevy1981 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    6b94626 View commit details
    Browse the repository at this point in the history
  2. More xarray to replace netcdf4

    Read in 40 years of SMB data with read_cesm_smb(), and then use xarray
    functions (basically taking means or sums over different dimensions) to compute
    the different climatologies. This greatly reduces the number of functions
    needed in utils - it's just read_cesm_smb() and some plotting routines.
    mnlevy1981 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    5b6e3d5 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. Add docstrings in utils.py

    Also renamed data -> da in plot_line() to be consistent with plot_contour()
    mnlevy1981 committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    f714646 View commit details
    Browse the repository at this point in the history
  2. Fix colorbar in plot_contour()

    Every panel was overwriting the location of the colorbar, so only the bias
    contour levels were shown. Now the first two plots (with same vmin and vmax)
    have a colorbar between them while bias plot colorbar is off to the right
    mnlevy1981 committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    b80a8c5 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Fix misleading comment

    mnlevy1981 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    e6246e4 View commit details
    Browse the repository at this point in the history