Introduction
I made a map using the SRTM grid (which only contains land data) for the region covering the Dead Sea and the Mediterranean Sea. Since each sea has a different sea level, creating an accurate map can be challenging (as you can see in the examples below).
Question
The SRTM data in the Mediterranean Sea originally contains NaN values. However, as far as I know, GMT replaces these NaN values with 0 during processing.
Wouldn’t it be better to keep the original NaN values instead of replacing them with 0? Are there cases where replacing NaN with 0 is necessary or beneficial?
If such cases exist, perhaps GMT could offer an option to let users decide whether to replace NaN values with 0 or keep them unchanged.
Examples
gmt grdimage @srtm_relief_03s -Baf -R34:30/35:45/31:30/32 -png DeadSea -Cgeo+h-414
gmt grdimage @srtm_relief_03s -Baf -R34:30/35:45/31:30/32 -png DeadSea