author | A.M. Thurnherr <athurnherr@yahoo.com> |
Sat, 24 Jul 2021 10:35:41 -0400 | |
changeset 56 | 8f120b9f795a |
parent 55 | 2d8e1139acd5 |
child 59 | 4118a8e880de |
permissions | -rw-r--r-- |
29 | 1 |
#====================================================================== |
2 |
# P L O T _ W P R O F . P L |
|
3 |
# doc: Sun Jul 26 11:08:50 2015 |
|
56 | 4 |
# dlm: Tue Jul 13 12:51:25 2021 |
29 | 5 |
# (c) 2015 A.M. Thurnherr |
56 | 6 |
# uE-Info: 126 0 NIL 0 0 72 0 2 4 NIL ofnI |
29 | 7 |
#====================================================================== |
8 |
||
9 |
# HISTORY: |
|
10 |
# Jul 26, 2015: - created from LWplot_prof_2beam |
|
31 | 11 |
# Jul 30, 2015: - moved main label outside plot area |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
12 |
# Oct 12, 2015: - BUG: gaps were not plotted as such |
41 | 13 |
# Mar 16, 2016: - adapted to gmt5 |
14 |
# Mar 17, 2016: - improved |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
15 |
# May 18, 2016: - replaced rms tilt by mean tilt with traffic background |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
16 |
# - added plot_wprof_ymin tweakable |
46 | 17 |
# May 24, 2016: - BUG: ymin did not work for nsamp |
18 |
# - fixed for partial-depth profiles |
|
19 |
# - suppress plotting of nsamp == 0 |
|
47
2ccb81b7cea5
version found on whoosher after repair
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
46
diff
changeset
|
20 |
# May 26, 2016: - added instrument coord system to plot labels |
49 | 21 |
# Mar 20, 2018: - BUG: units of vertical package acceleration were wrong |
22 |
# - added blue background for likely in-ice package accelerations |
|
54 | 23 |
# May 16, 2020: - added residual profile data to background |
24 |
# May 23, 2020: - BUG: windows without samples made program bomb |
|
55
2d8e1139acd5
adapted to Nortek files
Andreas Thurnherr <ant@ldeo.columbia.edu>
parents:
54
diff
changeset
|
25 |
# Mar 23, 2021: - BUG: instrument frequency was rounded to 100kHz |
56 | 26 |
# Jun 30, 2021: - improved quality semaphore |
27 |
# Jul 1, 2021: - replaced bin setup by <w> in legend |
|
28 |
# Jul 7, 2021: - added colored background to <w> |
|
29 |
# Jul 9, 2021: - adapted to new residual editing (calculation in LADCP_w_ocean) |
|
30 |
# HISTORY END |
|
29 | 31 |
|
32 |
# Tweakables: |
|
33 |
# |
|
34 |
# $plot_wprof_xmin = -0.27; |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
35 |
# $plot_wprof_ymin = 3600; |
29 | 36 |
# $plot_wprof_ymax = 5000; |
37 |
# $plot_wprof_xtics = "-0.25 -0.15 -0.05 0.05"; |
|
38 |
||
39 |
require "$ANTS/libGMT.pl"; |
|
40 |
||
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
41 |
sub setR1() { GMT_setR("-R$plot_wprof_xmin/0.35/$plot_wprof_ymin/$plot_wprof_ymax"); } |
46 | 42 |
sub setR2() { GMT_setR("-R-450/350/$plot_wprof_ymin/$plot_wprof_ymax"); } |
29 | 43 |
|
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
44 |
sub plotDC($$) |
29 | 45 |
{ |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
46 |
my($f,$minsamp) = @_; |
29 | 47 |
for (my($bi)=0; $bi<=$#{$DNCAST{$f}}; $bi++) { |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
48 |
if (numberp($DNCAST{$f}[$bi]) && $DNCAST{N_SAMP}[$bi]>=$minsamp) { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
49 |
printf(GMT "%g %g\n",$DNCAST{$f}[$bi],($bi+0.5)*$opt_o); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
50 |
} else { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
51 |
print(GMT "nan nan\n"); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
52 |
} |
29 | 53 |
} |
54 |
} |
|
55 |
||
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
56 |
sub plotUC($$) |
29 | 57 |
{ |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
58 |
my($f,$minsamp) = @_; |
29 | 59 |
for (my($bi)=0; $bi<=$#{$UPCAST{$f}}; $bi++) { |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
60 |
if (numberp($UPCAST{$f}[$bi]) && $UPCAST{N_SAMP}[$bi]>=$minsamp) { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
61 |
printf(GMT "%g %g\n",$UPCAST{$f}[$bi],($bi+0.5)*$opt_o); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
62 |
} else { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
63 |
print(GMT "nan nan\n"); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
64 |
} |
29 | 65 |
} |
66 |
} |
|
67 |
||
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
68 |
sub plotBT($$) |
29 | 69 |
{ |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
70 |
my($f,$minsamp) = @_; |
29 | 71 |
for (my($bi)=0; $bi<=$#{$BT{$f}}; $bi++) { |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
72 |
if (numberp($BT{$f}[$bi]) && $BT{N_SAMP}[$bi]>=$minsamp) { |
41 | 73 |
$have_BT = 1; |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
74 |
printf(GMT "%g %g\n",$BT{$f}[$bi],($bi+0.5)*$opt_o); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
75 |
} else { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
76 |
print(GMT "nan nan\n"); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
77 |
} |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
78 |
} |
29 | 79 |
} |
80 |
||
56 | 81 |
sub plotRes_V1() |
54 | 82 |
{ |
83 |
my($last_depth,$dc_sumsq_res,$dc_n,$uc_sumsq_res,$uc_n); |
|
84 |
for (my($bi)=0; $bi<=$#{$DNCAST{MEDIAN_W}}; $bi++) { |
|
85 |
my($depth) = ($bi+0.5) * $opt_o; |
|
86 |
if ($depth > $last_depth+100 || $bi == $#{$DNCAST{MEDIAN_W}}) { |
|
87 |
if ($dc_n==0 || sqrt($dc_sumsq_res/$dc_n) > 0.002) { |
|
88 |
my($green) = $dc_n ? round(100*max(0.01-max(sqrt($dc_sumsq_res/$dc_n)-0.002,0),0) * 255) : 0; |
|
89 |
GMT_psxy("-Gp300/12:F255/$green/${green}B-"); |
|
90 |
printf(GMT "%g %g\n%g %g\n%g %g\n%g %g\n", |
|
91 |
-0.1,$last_depth,0,$last_depth, |
|
92 |
0,$depth,-0.1,$depth); |
|
93 |
} |
|
94 |
if ($uc_n==0 || sqrt($uc_sumsq_res/$uc_n) > 0.002) { |
|
95 |
my($green) = $uc_n ? round(100*max(0.01-max(sqrt($uc_sumsq_res/$uc_n)-0.002,0),0) * 255) : 0; |
|
96 |
GMT_psxy("-Gp300/9:F255/$green/${green}B-"); |
|
97 |
printf(GMT "%g %g\n%g %g\n%g %g\n%g %g\n", |
|
98 |
0,$last_depth,0.07,$last_depth, |
|
99 |
0.07,$depth,0,$depth); |
|
100 |
} |
|
101 |
$dc_sumsq_res = $dc_n = $uc_sumsq_res = $uc_n = 0; |
|
102 |
$last_depth = $depth; |
|
103 |
} |
|
104 |
if (numberp($DNCAST{MEAN_RESIDUAL12}[$bi])) { |
|
105 |
$dc_sumsq_res += $DNCAST{MEAN_RESIDUAL12}[$bi]**2; |
|
106 |
$dc_n++; |
|
107 |
} |
|
108 |
if (numberp($UPCAST{MEAN_RESIDUAL12}[$bi])) { |
|
109 |
$uc_sumsq_res += $UPCAST{MEAN_RESIDUAL12}[$bi]**2; |
|
110 |
$uc_n++; |
|
111 |
} |
|
112 |
if (numberp($DNCAST{MEAN_RESIDUAL34}[$bi])) { |
|
113 |
$dc_sumsq_res += $DNCAST{MEAN_RESIDUAL34}[$bi]**2; |
|
114 |
$dc_n++; |
|
115 |
} |
|
116 |
if (numberp($UPCAST{MEAN_RESIDUAL34}[$bi])) { |
|
117 |
$uc_sumsq_res += $UPCAST{MEAN_RESIDUAL34}[$bi]**2; |
|
118 |
$uc_n++; |
|
119 |
} |
|
120 |
} |
|
121 |
} |
|
29 | 122 |
|
56 | 123 |
sub plotRes() |
124 |
{ |
|
125 |
for (my($bi)=0; $bi<=$#{$DNCAST{MEDIAN_W}}; $bi++) { |
|
126 |
if ($DNCAST{LR_RMS_BP_RESIDUAL}[$bi] > 0.002) { |
|
127 |
my($sat) = round(100*max(0.01-max($DNCAST{LR_RMS_BP_RESIDUAL}[$bi]-0.002,0),0) * 255); |
|
128 |
GMT_psxy("-Gp300/12:F255/$sat/${sat}B-"); |
|
129 |
printf(GMT "%g %g\n%g %g\n%g %g\n%g %g\n", |
|
130 |
-0.1,$bi*$opt_o,0,$bi*$opt_o, |
|
131 |
0,($bi+1)*$opt_o,-0.1,($bi+1)*$opt_o); |
|
132 |
} |
|
133 |
if ($UPCAST{LR_RMS_BP_RESIDUAL}[$bi] > 0.002) { |
|
134 |
my($sat) = round(100*max(0.01-max($UPCAST{LR_RMS_BP_RESIDUAL}[$bi]-0.002,0),0) * 255); |
|
135 |
GMT_psxy("-Gp300/9:F255/$sat/${sat}B-"); |
|
136 |
printf(GMT "%g %g\n%g %g\n%g %g\n%g %g\n", |
|
137 |
0,$bi*$opt_o,0.07,$bi*$opt_o, |
|
138 |
0.07,($bi+1)*$opt_o,0,($bi+1)*$opt_o); |
|
139 |
} |
|
140 |
} |
|
141 |
} |
|
142 |
||
29 | 143 |
sub plot_wprof($) |
144 |
{ |
|
145 |
my($pfn) = @_; |
|
146 |
||
147 |
$plot_wprof_xmin = -0.1 |
|
148 |
unless defined($plot_wprof_xmin); |
|
56 | 149 |
$plot_wprof_ymin = round(antsParam('depth.min')-25,50) |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
150 |
unless defined($plot_wprof_ymin); |
29 | 151 |
$plot_wprof_ymax = ($P{water_depth} > 0) ? |
46 | 152 |
round($P{water_depth}+25,50) : |
56 | 153 |
round($P{'depth.max'}+25,50) |
29 | 154 |
unless defined($plot_wprof_ymax); |
155 |
$plot_wprof_xtics = "-0.05 0.05 0.15" |
|
156 |
unless defined($plot_wprof_xtics); |
|
157 |
||
46 | 158 |
GMT_begin($pfn,'-JX10/-10',"-R$plot_wprof_xmin/0.35/$plot_wprof_ymin/$plot_wprof_ymax",'-P'); # START PLOT |
29 | 159 |
|
160 |
GMT_psxy('-G200'); # MAD background |
|
46 | 161 |
print(GMT "0.07 $plot_wprof_ymin\n 0.07 $plot_wprof_ymax\n0.18 $plot_wprof_ymax\n0.18 $plot_wprof_ymin\n"); |
29 | 162 |
|
163 |
if ($P{water_depth} > 0) { # SEABED |
|
164 |
GMT_psxy('-G204/153/102'); |
|
54 | 165 |
print(GMT "$plot_wprof_xmin $plot_wprof_ymax\n0.07 $plot_wprof_ymax\n0.07 $P{water_depth}\n $plot_wprof_xmin $P{water_depth}\n"); |
29 | 166 |
} |
167 |
||
54 | 168 |
setR1(); |
169 |
plotRes(); # RESIDUAL PROFILES |
|
170 |
GMT_psxy('-W0.5'); # FRAME |
|
29 | 171 |
print(GMT "0 0\n 0 $plot_wprof_ymax\n"); |
172 |
setR2(); |
|
41 | 173 |
GMT_psxy('-W0.5'); |
29 | 174 |
print(GMT ">\n50 0\n 50 $plot_wprof_ymax\n"); |
175 |
print(GMT ">\n150 0\n 150 $plot_wprof_ymax\n"); |
|
41 | 176 |
print(GMT ">\n250 0\n 250 $plot_wprof_ymax\n"); |
29 | 177 |
|
178 |
setR1(); # VERTICAL VELOCITIES |
|
41 | 179 |
GMT_psxy('-W1,coral,8_2:0'); plotDC('MEDIAN_W12',$opt_k); |
180 |
GMT_psxy('-W1,coral,1_1:0'); plotDC('MEDIAN_W34',$opt_k); |
|
181 |
GMT_psxy('-W1,SeaGreen,8_2:0'); plotUC('MEDIAN_W12',$opt_k); |
|
182 |
GMT_psxy('-W1,SeaGreen,1_1:0'); plotUC('MEDIAN_W34',$opt_k); |
|
183 |
GMT_psxy('-W1,black'); plotBT('MEDIAN_W',$opt_k); |
|
29 | 184 |
|
54 | 185 |
GMT_psxy('-Sc0.1c -Gcoral'); plotDC('MAD_W',1); # MEAN ABSOLUTE DEVIATIONS |
186 |
GMT_psxy('-Sc0.1c -GSeaGreen'); plotUC('MAD_W',1); |
|
187 |
GMT_psxy('-Sc0.1c -Gblack'); plotBT('MAD_W',1); |
|
29 | 188 |
|
189 |
setR2(); # SAMPLES |
|
46 | 190 |
GMT_psxy('-W0.7,coral'); plotDC('N_SAMP',1); |
191 |
GMT_psxy('-W0.7,SeaGreen'); plotUC('N_SAMP',1); |
|
54 | 192 |
GMT_psxy('-W0.7,black'); plotBT('N_SAMP',1); |
193 |
||
194 |
GMT_unitcoords(); # QUALITY SEMAPHORE |
|
195 |
GMT_psxy('-Ggray90'); |
|
196 |
print(GMT "0.895 0.895\n0.985 0.895\n0.985 0.985\n0.895 0.985\n"); |
|
56 | 197 |
if ($dc_bres12_rms >= 0.005) { GMT_psxy('-W1,coral,8_2:0 -Gred -N'); } |
198 |
elsif ($dc_bres12_rms >= 0.003) { GMT_psxy('-W1,coral,8_2:0 -Gorange -N'); } |
|
199 |
elsif ($dc_bres12_rms >= 0.0015) { GMT_psxy('-W1,coral,8_2:0 -Gyellow -N'); } |
|
200 |
else { GMT_psxy('-W1,coral,8_2:0 -Ggreen -N'); } |
|
201 |
# print(GMT "0.90 0.90\n0.935 0.90\n0.935 0.935\n"); |
|
202 |
print(GMT "0.90 0.90\n0.935 0.90\n0.935 0.935\n0.90 0.935\n"); |
|
203 |
if ($dc_bres34_rms >= 0.005) { GMT_psxy('-W1,coral,1_1:0 -Gred -N'); } |
|
204 |
elsif ($dc_bres34_rms >= 0.003) { GMT_psxy('-W1,coral,1_1:0 -Gorange -N'); } |
|
205 |
elsif ($dc_bres34_rms >= 0.0015) { GMT_psxy('-W1,coral,1_1:0 -Gyellow -N'); } |
|
206 |
else { GMT_psxy('-W1,coral,1_1:0 -Ggreen -N'); } |
|
207 |
# print(GMT "0.945 0.90\n0.98 0.90\n0.945 0.935\n"); |
|
208 |
print(GMT "0.945 0.90\n0.98 0.90\n0.98 0.935\n0.945 0.935\n"); |
|
209 |
if ($uc_bres12_rms >= 0.005) { GMT_psxy('-W1,SeaGreen,8_2:0 -Gred -N'); } |
|
210 |
elsif ($uc_bres12_rms >= 0.003) { GMT_psxy('-W1,SeaGreen,8_2:0 -Gorange -N'); } |
|
211 |
elsif ($uc_bres12_rms >= 0.0015) { GMT_psxy('-W1,SeaGreen,8_2:0 -Gyellow -N'); } |
|
212 |
else { GMT_psxy('-W1,SeaGreen,8_2:0 -Ggreen -N'); } |
|
213 |
# print(GMT "0.90 0.98\n0.935 0.98\n0.935 0.945\n"); |
|
214 |
print(GMT "0.90 0.98\n0.935 0.98\n0.935 0.945\n0.90 0.945\n"); |
|
215 |
if ($uc_bres34_rms >= 0.005) { GMT_psxy('-W1,SeaGreen,1_1:0 -Gred -N'); } |
|
216 |
elsif ($uc_bres34_rms >= 0.003) { GMT_psxy('-W1,SeaGreen,1_1:0 -Gorange -N'); } |
|
217 |
elsif ($uc_bres34_rms >= 0.0015) { GMT_psxy('-W1,SeaGreen,1_1:0 -Gyellow -N'); } |
|
218 |
else { GMT_psxy('-W1,SeaGreen,1_1:0 -Ggreen -N'); } |
|
219 |
# print(GMT "0.945 0.98\n0.98 0.98\n0.945 0.945\n"); |
|
220 |
print(GMT "0.945 0.98\n0.98 0.98\n0.98 0.945\n0.945 0.945\n"); |
|
29 | 221 |
|
54 | 222 |
GMT_pstext('-F+f14,Helvetica,blue+jTL -N'); # LABELS |
41 | 223 |
print(GMT "0.01 -0.06 $P{out_basename} [$P{run_label}]\n"); |
54 | 224 |
GMT_pstext('-F+f12,Helvetica+jTR'); |
225 |
print(GMT "0.61 0.02 m.abs.dev.\n"); |
|
41 | 226 |
GMT_pstext('-F -N'); |
227 |
print(GMT "0.32 1.12 Vertical Velocity [m/s]\n"); |
|
54 | 228 |
GMT_pstext('-F+f9,Helvetica,LightSkyBlue+jTR -N -Gwhite'); |
41 | 229 |
print(GMT "0.99 0.01 V$VERSION\n"); |
29 | 230 |
|
41 | 231 |
GMT_pstext('-F+f12,Helvetica,coral+jTL -Gwhite'); |
54 | 232 |
print(GMT "0.02 0.02 downcast\n"); |
41 | 233 |
GMT_pstext('-F+f12,Helvetica,SeaGreen+jTL -Gwhite'); |
54 | 234 |
print(GMT "0.24 0.02 upcast\n"); |
41 | 235 |
if ($have_BT) { |
54 | 236 |
GMT_pstext('-F+f12,Helvetica,black+jBL -Gwhite'); |
237 |
print(GMT "0.02 0.98 b.track\n"); |
|
41 | 238 |
} |
239 |
||
56 | 240 |
# The following values were established manually in July 2021 with |
241 |
# a GMT version that does not seem to respect y, maybe because of |
|
242 |
# super-/subscripts. |
|
243 |
# my(@y) = (1.020,1.056,1.090,1.135); # 0.036, 0.034, 0.035 |
|
244 |
# my(@y) = (1.020,1.056,1.088,1.131); |
|
245 |
my(@y) = (1.020,1.060,1.088,1.127); |
|
246 |
||
41 | 247 |
GMT_pstext('-F+f9,Helvetica,CornFlowerBlue+jTL -N'); |
56 | 248 |
printf(GMT "0.64 $y[0] %d kHz $LADCP{INSTRUMENT_TYPE} $P{ADCP_orientation}\n", |
249 |
round($LADCP{BEAM_FREQUENCY},50)); |
|
250 |
||
251 |
# printf(GMT "0.64 1.055 %s [%.1fm/%1.fm/%1.fm]\n", |
|
252 |
# $LADCP{BEAM_COORDINATES} ? 'beam vels' : 'Earth vels', |
|
253 |
# $LADCP{BLANKING_DISTANCE},$LADCP{TRANSMITTED_PULSE_LENGTH},$LADCP{BIN_LENGTH}); |
|
254 |
||
255 |
print( GMT "0.64 $y[1] mean w\n 0.77 $y[1] :\n"); |
|
256 |
printf(GMT "0.64 $y[2] mean tilt\n 0.77 %f :\n",$y[2]+0.007); |
|
257 |
print( GMT "0.64 $y[3] rms a\@-pkg\@-\n 0.77 $y[3] :\n"); |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
258 |
|
56 | 259 |
if (abs($P{'dc_w.mu'} - $P{'uc_w.mu'}) < 0.005) { |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
260 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -N'); |
56 | 261 |
} elsif (abs($P{'dc_w.mu'} - $P{'uc_w.mu'}) < 0.01) { |
262 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gyellow -N'); |
|
263 |
} else { |
|
264 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gred -N'); |
|
265 |
} |
|
266 |
printf(GMT "0.78 %f %dmm/s\n",$y[1]-0.006,round($P{'dc_w.mu'}*1000)); |
|
267 |
||
268 |
if (abs($P{'dc_w.mu'} - $P{'uc_w.mu'}) < 0.005) { |
|
269 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -N'); |
|
270 |
} elsif (abs($P{'dc_w.mu'} - $P{'uc_w.mu'}) < 0.01) { |
|
271 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gyellow -N'); |
|
272 |
} else { |
|
273 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gred -N'); |
|
274 |
} |
|
275 |
printf(GMT "0.89 %f %dmm/s\n",$y[1]-0.006,round($P{'uc_w.mu'}*1000)); |
|
276 |
||
277 |
||
278 |
if ($P{'dc_tilt.mu'} < 4) { |
|
279 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -N'); |
|
280 |
} elsif ($P{'dc_tilt.mu'} < 8) { |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
281 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gyellow -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
282 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
283 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gred -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
284 |
} |
56 | 285 |
printf(GMT "0.808 $y[2] %.1f\\260\n",$P{'dc_tilt.mu'}); |
286 |
||
287 |
if ($P{'uc_tilt.mu'} < 4) { |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
288 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -N'); |
56 | 289 |
} elsif ($P{'uc_tilt.mu'} < 8) { |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
290 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gyellow -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
291 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
292 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gred -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
293 |
} |
56 | 294 |
printf(GMT "0.91 $y[2] %.1f\\260\n",$P{'uc_tilt.mu'}); |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
295 |
|
56 | 296 |
if ($P{'dc_accel_pkg.rms'} < 0.1) { |
49 | 297 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gblue -N'); |
56 | 298 |
} elsif ($P{'dc_accel_pkg.rms'} < 0.7) { |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
299 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
300 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
301 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gyellow -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
302 |
} |
56 | 303 |
printf(GMT "0.78 %f %.1fm/s\@+2\@+\n",$y[3]-0.01,$P{'dc_accel_pkg.rms'}); |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
304 |
|
56 | 305 |
if ($P{'uc_accel_pkg.rms'} < 0.1) { |
49 | 306 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gblue -N'); |
56 | 307 |
} elsif ($P{'uc_accel_pkg.rms'} < 0.7) { |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
308 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
309 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
310 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gyellow -N'); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
311 |
} |
56 | 312 |
printf(GMT "0.89 %f %.1fm/s\@+2\@+\n",$y[3]-0.01,$P{'uc_accel_pkg.rms'}); |
41 | 313 |
|
46 | 314 |
my($depth_tics) = ($plot_wprof_ymax-$plot_prof_ymin < 1000 ) ? 'f10a100' : 'f100a500'; # AXES |
29 | 315 |
setR1(); |
41 | 316 |
GMT_psbasemap("-Bf0.01:'':/$depth_tics:'Depth [m]':WeS"); |
29 | 317 |
foreach my $t (split('\s+',$plot_wprof_xtics)) { |
318 |
GMT_psbasemap(sprintf('-Ba10-%fS',10-$t)); |
|
319 |
} |
|
320 |
setR2(); |
|
321 |
GMT_psbasemap('-Bf10a1000-950:" # of Samples":N'); |
|
322 |
GMT_psbasemap('-Ba1000-850N'); |
|
41 | 323 |
GMT_psbasemap('-Ba1000-750N'); |
29 | 324 |
|
325 |
GMT_end(); # FINISH PLOT |
|
326 |
} |
|
327 |
||
328 |
1; # return true on require |