...
Cropping coordinates (station locations) using GMT
Option 1: using
...
gmt select
gmt select -Fpolygon.ll hh400.ll > hh400_land.ll
Option 2: using gmt spatial
Convert points to virtual paths by duplicating position and naming segment with 3rd value (station name).
...