-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseline.bat
45 lines (36 loc) · 1.59 KB
/
baseline.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@REM ##############################################
@REM # plot baseline network using GMT and GAMMA #
@REM # Copyright (c) 2021, Lei Yuan #
@REM ##############################################
gmt set FORMAT_DATE_MAP "yyyy-mm-dd"
gmt set FORMAT_TIME_PRIMARY_MAP Abbreviated
gmt set FORMAT_DATE_IN "yyyymmdd"
gmt set MAP_FRAME_PEN 0.5p
gmt set FONT_ANNOT_PRIMARY 10p,4
gmt set MAP_TICK_LENGTH_PRIMARY -3p
gmt set FONT_LABEL 10p,4
gmt set MAP_GRID_PEN_PRIMARY 0.1p,gray,-
gmt set MAP_LABEL_OFFSET 4p
gmt set MAP_ANNOT_ORTHO Z
set R="2019-12T/2021-2T/-120/80"
gmt begin
gmt figure baseline_with_coherence png
gmt basemap -R%R% -JX10c/6c -Bxa6Of10dg2O -Bya40f20g40+l"Perpendicular Baseline (m)" -BWSne
gmt makecpt -Chot -I -T0/1
gmt plot baseline_with_coherence -St0.2 -Gblack
gmt plot baseline_with_coherence -W0.3p,black -C
echo 20200826 0 | gmt plot -St0.2 -Gred
gmt colorbar -C -DjBR+w6c/0.3c+o-0.5c/0c -Bx1
echo N 1 > legend.txt
echo S 0.1i t 0.2c red - 0.22i supermaster image >> legend.txt
gmt legend legend.txt -DjBR+w3.1c+o0c/0.2c --FONT_ANNOT_PRIMARY=8p,4
gmt figure baseline png
gmt basemap -R%R% -JX10c/6c -Bxa6Of10dg2O -Bya40f20g40+l"Perpendicular Baseline (m)" -BWSne
gmt plot baseline -St0.2 -Gblack
gmt plot baseline -W0.3p,black
echo 20200826 0 | gmt plot -St0.2 -Gred
echo N 1 > legend.txt
echo S 0.1i t 0.2c red - 0.22i supermaster image >> legend.txt
gmt legend legend.txt -DjBR+w3.1c+o0c/0.2c --FONT_ANNOT_PRIMARY=8p,4
gmt end
del gmt.*,legend.txt