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

Tool for interpolating MPAS-Ocean output to MALI for forcing standalone simulations #577

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Commits on May 6, 2024

  1. add interpolate_mpasOcean_to_mali

    Creates new script that interpolates MPAS-Ocean thermal forcing and sub
    ice shelf melt rates to a MALI mesh for one way coupling. Still a work
    in progress at this point
    alexolinhager committed May 6, 2024
    Configuration menu
    Copy the full SHA
    febf9fc View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. thermal forcing calc. and reorganize

    Implements the thermal forcing calculation, as well as reorganizes
    script to object oriented. Further work is labeled with "<< TO DO >>:"
    alexolinhager committed May 8, 2024
    Configuration menu
    Copy the full SHA
    55a569b View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Finish interpolate_mpasOcean_to_mali

    Finishes to-do list of interpolation script. Script capabilities are
    now all complete, but script still needs to be tested and likely debugged
    alexolinhager committed May 10, 2024
    Configuration menu
    Copy the full SHA
    c0df6c6 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Configuration menu
    Copy the full SHA
    5d76512 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a37227 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    0581fa5 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Configuration menu
    Copy the full SHA
    3a2339b View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Misc. Debugging

    alexolinhager committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    274513b View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Save xtime

    alexolinhager committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    739a7d0 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. xtime debugging

    alexolinhager committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    262acb6 View commit details
    Browse the repository at this point in the history
  2. Fix xtime variable

    Two changes to get xtime written correctly:
    * when the char array is generated, pad it to 64 characters
    * fix a bug in that the return code to encoding.update was being
      assigned to xtime
    matthewhoffman committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    c106ddb View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Fix handling of if landIceFreshwaterFlux is available

    Previous code was giving an error when landIceFreshwaterFlux exists.
    matthewhoffman committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    a825898 View commit details
    Browse the repository at this point in the history
  2. Set minLevelCell to 1 everywhere if variable is not present

    minLevelCell does not exist in older meshes, which assumed it was 1.
    matthewhoffman committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    56bce68 View commit details
    Browse the repository at this point in the history
  3. Switch to getting simulation start time from variable instead of glob…

    …al attr
    
    The global attribute version could sometimes have the value 'file'.
    matthewhoffman committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    9430347 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    473393c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f4dfa53 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1e12de1 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    c815154 View commit details
    Browse the repository at this point in the history
  2. Restrict analysis to only *.mpaso.hist.am.timeSeriesStatsMonthly.*.nc…

    … files
    
    There will likely be other files in output directories, so ensure we are
    only working with the relevant ones.
    matthewhoffman committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    03afbfe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fe90dd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5bb344 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Allow script to run multiple years

    * introduce start and end year options
    * add time loop to main function
    * create get_data function to retrieve needed data for each year
    * adjust remap_mpas_to_mali to handle a year argument
    
    A few comments:
    * I’ve commented out writing of the mesh fields to keep file size down.
      This is unrelated to the handling of years and perhaps should be a command line option
    * I had to adjust handling of various details of xarray data types to get this to work
    * creation of the mapping file should be moved out of the time loop so it only occurs once!
    matthewhoffman committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    c0dab16 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Configuration menu
    Copy the full SHA
    4ae6f86 View commit details
    Browse the repository at this point in the history
  2. Move creation of mapping file outside of time loop

    This only needs to happen once.  This commit also changes some variable
    names to be more precise.
    matthewhoffman committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    ce2d473 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Move mask creation to before interpolation in a separate output file

    This commit creates 2 masks about the extent of ocean data and moves
    them to before interpolation so that MALI has access to the interpolated
    mask values, rather than trying to construct them after the fact.  The
    masks get interpolated in a separate file from the TF/melt data.
    
    It is not yet clear if there will be a single mask definition that is
    appropriate for all applications, so this approach forces the MALI user
    to make a conscious decision about how to define the mask.
    
    The two masks are:
    * the entire ocean domain
    * the open ocean
    matthewhoffman committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    80fc72e View commit details
    Browse the repository at this point in the history
  2. Move vert. interp. before horiz.

    We want to do ver. before horiz interp to avoid any horiz/vert "mixing" due to
    potential mpas-ocean hybrid coordinate.  Also, this should speed up ncremap
    because the number of ismip6 vert levels is less than most ocean meshes.
    After this change, “scalloping” in the open ocean is gone.
    As this required substantial refactoring, there are a lot of related changes to
    file handling and xarray objects.
    matthewhoffman committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    74fe08c View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. Corrections to vertical interpolation

    Previous results had the vertical coordinate upside down.  These changes
    correct that and are more careful about indexing conventions.
    matthewhoffman committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    e085dce View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Correct logic for open ocean and cavity coefficients

    They had been reversed.
    
    Co-authored-by: Alexander Hager <[email protected]>
    matthewhoffman and alexolinhager committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    6fd2405 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Mark vertical levels outside the source data range as nan

    This allows locations inside the ice shelf or below the bathymetry to be
    identified on the MALI mesh.
    matthewhoffman committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    5be2a0f View commit details
    Browse the repository at this point in the history