I have a gridded variable named Var (size: 1440 x 720). It was put onto a grid defined by longitude 20:0.25:379.75 and latitude -90:0.25:89.75.
Below was how I applied land/sea mask at 200 meter depth myself. I used the GEBCO database:
fi = griddata … # 3-column: lon, lat and elevation/depth.
Index = fi .> -200;
Var[Index] .= NaN;
I just spotted some issues related to the GEBCO data, and am exploring how to achieve that using the GMT command of grdlandmask.
Below is the instructions from the GMT.jl documentation. Unfortunately, I’m struggling to follow the instructions here. Could anyone please share how this can be done in Julia?
Many thanks!