#!/usr/bin/env bash
#
# Split a polyline into chunks

ps=split.ps

gmt psxy data.dat -R-15/-12/35/37.5 -JM10c -W5p,gray -B1 -P -K > $ps
gmt split data.dat -C45 -A45/15 -fg | gmt psxy -R-15/-12/35/38 -JM10c -W1p -O >> $ps

