Open glwagner opened 2 months ago
cc @simone-silvestri
I learned yesterday that in regards to bathymetry, there is something called in-paint. Does this need a test?
That is the remove_basins!
feature that removes all connected regions but the largest. BTW there is an issue with the new bathymetry. The generate_bathymetry
example fails on main with
https://buildkite.com/clima/climaocean-examples/builds/240#01915522-a196-4bb4-91ab-66198dbc76ed
It does seem like we need tests!
That is the
remove_basins!
feature that removes all connected regions but the largest. BTW there is an issue with the new bathymetry. Thegenerate_bathymetry
example fails on main with https://buildkite.com/clima/climaocean-examples/builds/240#01915522-a196-4bb4-91ab-66198dbc76ed
There are few tests for bathymetry utilities. Here are a few that we need:
remove_basins!(z, Inf)
does nothing b.remove_basins(z, 2.1)
throws an error (for example --- other inputs might be tested) c.interpolate_bathymetry_in_passes
doesn't do anything when we are not refining the bathymetry d. The argumentminimum_depth
worksremove_basins!
correctly removes the specified number of basinsThose come to the top of my head.
Originally posted by @glwagner in https://github.com/CliMA/ClimaOcean.jl/issues/140#issuecomment-2290024722