Set all cells below a certain value to NaN

I’m looking for a function to set all grid cells that are below (or above) a certain value to NaN. I thought this function existed in grdmath, but I cannot find it! Doesn’t this function exist?

Nevermind. https://docs.generic-mapping-tools.org/latest/grdclip.html Does what I’m looking for.

1 Like