osmose.forcing.bathymetry

Sub-grid bathymetry statistics for the finer-grid percid experiment. Pure, grid/data-source-agnostic. shallow_fraction bins high-res EMODnet elevation (negative=below sea level) into the target grid and returns per cell the fraction of WET sub-pixels shallower than depth_max_m.

Functions

shallow_fraction(elev_hi, lat_hi, lon_hi, ...)