Baseline length

Hello everyone, Please I having a challenge in plotting a baseline length between two GNSS stations. I tried to plot it it only gave me the points but could not give the baseline length. please can some one help out. Is very important I make the plot on my work.
below are the code and part of the data

 gmt begin map2 pdf

     gmt set MAP_FRAME_TYPE plain
     gmt set FONT_LABEL 16p
     gmt makecpt -Cjet -T-15/30/2
#distance=$(gmt mapproject -Q -G-16/-35 -L33/-22 -W16/33 -F -C stations.txt | awk '{print $3}')
      gmt pscoast -R16/33/-35/-22 -JM20c -BWSne -Baf -I1/1p,0/200/251 -W1,black -Gwhite -Di -N2/0.25p,black -Na/0.5,black  -Swhite > SA.ps 
 gmt makecpt -Cblack -T-10/30 -H > my.cpt
  #  gmt psxy SA.dat -R16/33/-35/-22 -JM20c -L -Gblue -W1.25,black, -Sc0.2c
     gmt psxy SA.dat -R16/33/-35/-22 -JM20c -BWSne -St0.5c -Cmy.cpt -Baf > map.ps
     gmt psxy SA2.dat -R16/33/-35/-22 -JM20c -BWSne -S -Cmy.cpt -Baf > map.ps
##long.     lat.       Up
20.8109	-32.3814	0.105569
23.9926	-30.6652	0.163773
>
27.7072	-25.887 	0.52145
19.2231	-34.4246	-0.521479
>
27.687	-25.8901	0.446383
25.54	-25.805 	-0.131858
>
28.224	-25.7463	-0.111896
28.224	-25.7463	-1.05978
>
32.0784	-28.7955	-0.213953
17.8792	-29.6693	0.356411
>
20.8105	-32.3802	-1.46546
30.384	-23.0799	-0.194708
>
31.4209	-28.2931	1.67982
28.6725	-31.5488	0.692075
>
37.861	-46.876 	0.689517
28.224	-25.7465	-0.585269

image
Please someone help out. Is the table correct?

Please, show us an agnostic (no Win no Unix) reproducible example.

Please check your script. It mixes classic and modern syntax.

Hello @parker,

with baselines you mean connection lines between the recording stations?

Just an idea from reading your code. This line is probably the line for the baselines:

gmt psxy SA2.dat -R16/33/-35/-22 -JM20c -BWSne -S -Cmy.cpt -Baf > map.ps

Maybe -W (pen) is missing to get lines instead of symbols (-S)?

Yes, connection lines between the recording stations. connection like
sutm-dear
sutm-harb
sutm-hrao
sutm-mfkg
sutm-pre1
sutm-pre2
sutm-rbay
dear-harb
dear-hrao
dear-mfkg
dear-pre1
dear-pre2
dear-rbay
harb-hrao
harb-mfkg
harb-pre1
harb-pre2
harb-rbay

I’ll try your suggestion, probably get back
Thank you so much for your kind response.

Yes, connection lines between the recording stations. connection like
sutm-dear
sutm-harb
sutm-hrao
sutm-mfkg
sutm-pre1
sutm-pre2
sutm-rbay
dear-harb
dear-hrao
dear-mfkg
dear-pre1
dear-pre2
dear-rbay
harb-hrao
harb-mfkg
harb-pre1
harb-pre2
harb-rbay

I’ll try your suggestion, probably get back
Thank you so much for your kind response.

This list looks like you want to draw a network between your stations. For this -F of plot may be helpful for you (for networks you need n).

Thank you for your the suggestion you made. I used the -F and I got this
image
Thanks