How to calculate the shortest distance from one point to the coastline

The calculation is in GMT … mapproject and grdmath are both GMT tools :slight_smile: