Skip to content

Interpolates from a regular spherical (lat-lon) grid to a tri-polar ocean model grid

Notifications You must be signed in to change notification settings

MOM6-community/interp_and_fill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

interp_and_fill

Non-conservatively interpolate from a latitude-longitude grid to a curvilinear (tri-polar) ocean grid with a given land/sea mask and fill in where needed.

Usage

./interp_and_fill.py -h
./interp_and_fill.py ocean_hgrid.nc ocean_mask.nc source_data.nc variable_name new_file.nc

Algorithm

  1. Super-sample ocean grid by binary division until the number of degrees of freedom in the i-direction are finer than those of the source data.
  2. Linearly interpolate source data to super-sampled grid.
    • No extrapolation or nearest neighbor interpolation.
  3. Average super-sampled data to model cells.
  4. Objectively fill-in missing data using an elliptic solver.

About

Interpolates from a regular spherical (lat-lon) grid to a tri-polar ocean model grid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published