I want to add a scale to a map. I have tried the example given in the online sources (using pscoast with the -L option, but am unable to create it. By running the below script, I can only get the map, but not the scale.
#!/bin/bash
LATLON=18/125/-70/25
PROJ=M6i
FNAME=map.ps
gmt grdimage ./earth_relief_15s.grd -R${LATLON} -J${PROJ} -I -X2 -Y3 -n+c -C./ciob.cpt -P -B15 -V -K >${FNAME}
gmt pscoast -R${LATLON} -J${PROJ} -O -K -Dh -Gc >> ${FNAME}
gmt grdimage ./earth_relief_15s.grd -R${LATLON} -J${PROJ} -Cgray.cpt -O -K >> ${FNAME}
gmt pscoast -R${LATLON} -J${PROJ} -Lg110/-68+c5+w1000k+f+ab -O -K -Q >> ${FNAME}
gmt psscale -C./ciob.cpt -D7.7/-1.0/15/0.4h -P -O -B1000:“Bathymetry”:/:meter: -I -V >> ${FNAME}