author | Andreas Thurnherr <ant@ldeo.columbia.edu> |
Sat, 10 Apr 2021 06:00:45 -0400 | |
changeset 55 | 2d8e1139acd5 |
parent 54 | 828e5466391b |
child 56 | 8f120b9f795a |
child 58 | 7688bec6fe87 |
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 |
|
55
2d8e1139acd5
adapted to Nortek files
Andreas Thurnherr <ant@ldeo.columbia.edu>
parents:
54
diff
changeset
|
4 |
# dlm: Tue Mar 23 08:28:12 2021 |
29 | 5 |
# (c) 2015 A.M. Thurnherr |
55
2d8e1139acd5
adapted to Nortek files
Andreas Thurnherr <ant@ldeo.columbia.edu>
parents:
54
diff
changeset
|
6 |
# uE-Info: 25 39 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 |
29 | 26 |
|
27 |
# Tweakables: |
|
28 |
# |
|
29 |
# $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
|
30 |
# $plot_wprof_ymin = 3600; |
29 | 31 |
# $plot_wprof_ymax = 5000; |
32 |
# $plot_wprof_xtics = "-0.25 -0.15 -0.05 0.05"; |
|
33 |
||
34 |
require "$ANTS/libGMT.pl"; |
|
35 |
||
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
36 |
sub setR1() { GMT_setR("-R$plot_wprof_xmin/0.35/$plot_wprof_ymin/$plot_wprof_ymax"); } |
46 | 37 |
sub setR2() { GMT_setR("-R-450/350/$plot_wprof_ymin/$plot_wprof_ymax"); } |
29 | 38 |
|
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
39 |
sub plotDC($$) |
29 | 40 |
{ |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
41 |
my($f,$minsamp) = @_; |
29 | 42 |
for (my($bi)=0; $bi<=$#{$DNCAST{$f}}; $bi++) { |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
43 |
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
|
44 |
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
|
45 |
} else { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
46 |
print(GMT "nan nan\n"); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
47 |
} |
29 | 48 |
} |
49 |
} |
|
50 |
||
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
51 |
sub plotUC($$) |
29 | 52 |
{ |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
53 |
my($f,$minsamp) = @_; |
29 | 54 |
for (my($bi)=0; $bi<=$#{$UPCAST{$f}}; $bi++) { |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
55 |
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
|
56 |
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
|
57 |
} else { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
58 |
print(GMT "nan nan\n"); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
59 |
} |
29 | 60 |
} |
61 |
} |
|
62 |
||
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
63 |
sub plotBT($$) |
29 | 64 |
{ |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
65 |
my($f,$minsamp) = @_; |
29 | 66 |
for (my($bi)=0; $bi<=$#{$BT{$f}}; $bi++) { |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
67 |
if (numberp($BT{$f}[$bi]) && $BT{N_SAMP}[$bi]>=$minsamp) { |
41 | 68 |
$have_BT = 1; |
32
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
69 |
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
|
70 |
} else { |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
71 |
print(GMT "nan nan\n"); |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
72 |
} |
6041a20feb39
V1.0 release candidate
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
31
diff
changeset
|
73 |
} |
29 | 74 |
} |
75 |
||
54 | 76 |
sub plotRes() |
77 |
{ |
|
78 |
my($last_depth,$dc_sumsq_res,$dc_n,$uc_sumsq_res,$uc_n); |
|
79 |
for (my($bi)=0; $bi<=$#{$DNCAST{MEDIAN_W}}; $bi++) { |
|
80 |
my($depth) = ($bi+0.5) * $opt_o; |
|
81 |
if ($depth > $last_depth+100 || $bi == $#{$DNCAST{MEDIAN_W}}) { |
|
82 |
if ($dc_n==0 || sqrt($dc_sumsq_res/$dc_n) > 0.002) { |
|
83 |
my($green) = $dc_n ? round(100*max(0.01-max(sqrt($dc_sumsq_res/$dc_n)-0.002,0),0) * 255) : 0; |
|
84 |
GMT_psxy("-Gp300/12:F255/$green/${green}B-"); |
|
85 |
printf(GMT "%g %g\n%g %g\n%g %g\n%g %g\n", |
|
86 |
-0.1,$last_depth,0,$last_depth, |
|
87 |
0,$depth,-0.1,$depth); |
|
88 |
} |
|
89 |
if ($uc_n==0 || sqrt($uc_sumsq_res/$uc_n) > 0.002) { |
|
90 |
my($green) = $uc_n ? round(100*max(0.01-max(sqrt($uc_sumsq_res/$uc_n)-0.002,0),0) * 255) : 0; |
|
91 |
GMT_psxy("-Gp300/9:F255/$green/${green}B-"); |
|
92 |
printf(GMT "%g %g\n%g %g\n%g %g\n%g %g\n", |
|
93 |
0,$last_depth,0.07,$last_depth, |
|
94 |
0.07,$depth,0,$depth); |
|
95 |
} |
|
96 |
$dc_sumsq_res = $dc_n = $uc_sumsq_res = $uc_n = 0; |
|
97 |
$last_depth = $depth; |
|
98 |
} |
|
99 |
if (numberp($DNCAST{MEAN_RESIDUAL12}[$bi])) { |
|
100 |
$dc_sumsq_res += $DNCAST{MEAN_RESIDUAL12}[$bi]**2; |
|
101 |
$dc_n++; |
|
102 |
} |
|
103 |
if (numberp($UPCAST{MEAN_RESIDUAL12}[$bi])) { |
|
104 |
$uc_sumsq_res += $UPCAST{MEAN_RESIDUAL12}[$bi]**2; |
|
105 |
$uc_n++; |
|
106 |
} |
|
107 |
if (numberp($DNCAST{MEAN_RESIDUAL34}[$bi])) { |
|
108 |
$dc_sumsq_res += $DNCAST{MEAN_RESIDUAL34}[$bi]**2; |
|
109 |
$dc_n++; |
|
110 |
} |
|
111 |
if (numberp($UPCAST{MEAN_RESIDUAL34}[$bi])) { |
|
112 |
$uc_sumsq_res += $UPCAST{MEAN_RESIDUAL34}[$bi]**2; |
|
113 |
$uc_n++; |
|
114 |
} |
|
115 |
} |
|
116 |
} |
|
29 | 117 |
|
118 |
sub plot_wprof($) |
|
119 |
{ |
|
120 |
my($pfn) = @_; |
|
121 |
||
122 |
$plot_wprof_xmin = -0.1 |
|
123 |
unless defined($plot_wprof_xmin); |
|
46 | 124 |
$plot_wprof_ymin = round(antsParam('min_depth')-25,50) |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
125 |
unless defined($plot_wprof_ymin); |
29 | 126 |
$plot_wprof_ymax = ($P{water_depth} > 0) ? |
46 | 127 |
round($P{water_depth}+25,50) : |
128 |
round($P{max_depth}+25,50) |
|
29 | 129 |
unless defined($plot_wprof_ymax); |
130 |
$plot_wprof_xtics = "-0.05 0.05 0.15" |
|
131 |
unless defined($plot_wprof_xtics); |
|
132 |
||
46 | 133 |
GMT_begin($pfn,'-JX10/-10',"-R$plot_wprof_xmin/0.35/$plot_wprof_ymin/$plot_wprof_ymax",'-P'); # START PLOT |
29 | 134 |
|
135 |
GMT_psxy('-G200'); # MAD background |
|
46 | 136 |
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 | 137 |
|
138 |
if ($P{water_depth} > 0) { # SEABED |
|
139 |
GMT_psxy('-G204/153/102'); |
|
54 | 140 |
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 | 141 |
} |
142 |
||
54 | 143 |
setR1(); |
144 |
plotRes(); # RESIDUAL PROFILES |
|
145 |
GMT_psxy('-W0.5'); # FRAME |
|
29 | 146 |
print(GMT "0 0\n 0 $plot_wprof_ymax\n"); |
147 |
setR2(); |
|
41 | 148 |
GMT_psxy('-W0.5'); |
29 | 149 |
print(GMT ">\n50 0\n 50 $plot_wprof_ymax\n"); |
150 |
print(GMT ">\n150 0\n 150 $plot_wprof_ymax\n"); |
|
41 | 151 |
print(GMT ">\n250 0\n 250 $plot_wprof_ymax\n"); |
29 | 152 |
|
153 |
setR1(); # VERTICAL VELOCITIES |
|
41 | 154 |
GMT_psxy('-W1,coral,8_2:0'); plotDC('MEDIAN_W12',$opt_k); |
155 |
GMT_psxy('-W1,coral,1_1:0'); plotDC('MEDIAN_W34',$opt_k); |
|
156 |
GMT_psxy('-W1,SeaGreen,8_2:0'); plotUC('MEDIAN_W12',$opt_k); |
|
157 |
GMT_psxy('-W1,SeaGreen,1_1:0'); plotUC('MEDIAN_W34',$opt_k); |
|
158 |
GMT_psxy('-W1,black'); plotBT('MEDIAN_W',$opt_k); |
|
29 | 159 |
|
54 | 160 |
GMT_psxy('-Sc0.1c -Gcoral'); plotDC('MAD_W',1); # MEAN ABSOLUTE DEVIATIONS |
161 |
GMT_psxy('-Sc0.1c -GSeaGreen'); plotUC('MAD_W',1); |
|
162 |
GMT_psxy('-Sc0.1c -Gblack'); plotBT('MAD_W',1); |
|
29 | 163 |
|
164 |
setR2(); # SAMPLES |
|
46 | 165 |
GMT_psxy('-W0.7,coral'); plotDC('N_SAMP',1); |
166 |
GMT_psxy('-W0.7,SeaGreen'); plotUC('N_SAMP',1); |
|
54 | 167 |
GMT_psxy('-W0.7,black'); plotBT('N_SAMP',1); |
168 |
||
169 |
GMT_unitcoords(); # QUALITY SEMAPHORE |
|
170 |
GMT_psxy('-Ggray90'); |
|
171 |
print(GMT "0.895 0.895\n0.985 0.895\n0.985 0.985\n0.895 0.985\n"); |
|
172 |
if ($dc_bres12_rms >= 0.005) { GMT_psxy('-Gred -N'); } |
|
173 |
elsif ($dc_bres12_rms >= 0.003) { GMT_psxy('-Gorange -N'); } |
|
174 |
elsif ($dc_bres12_rms >= 0.0015) { GMT_psxy('-Gyellow -N'); } |
|
175 |
else { GMT_psxy('-Ggreen -N'); } |
|
176 |
print(GMT "0.90 0.90\n0.935 0.90\n0.935 0.935\n"); |
|
177 |
if ($dc_bres34_rms >= 0.005) { GMT_psxy('-Gred -N'); } |
|
178 |
elsif ($dc_bres34_rms >= 0.003) { GMT_psxy('-Gorange -N'); } |
|
179 |
elsif ($dc_bres34_rms >= 0.0015) { GMT_psxy('-Gyellow -N'); } |
|
180 |
else { GMT_psxy('-Ggreen -N'); } |
|
181 |
print(GMT "0.945 0.90\n0.98 0.90\n0.945 0.935\n"); |
|
182 |
if ($uc_bres12_rms >= 0.005) { GMT_psxy('-Gred -N'); } |
|
183 |
elsif ($uc_bres12_rms >= 0.003) { GMT_psxy('-Gorange -N'); } |
|
184 |
elsif ($uc_bres12_rms >= 0.0015) { GMT_psxy('-Gyellow -N'); } |
|
185 |
else { GMT_psxy('-Ggreen -N'); } |
|
186 |
print(GMT "0.90 0.98\n0.935 0.98\n0.935 0.945\n"); |
|
187 |
if ($uc_bres34_rms >= 0.005) { GMT_psxy('-Gred -N'); } |
|
188 |
elsif ($uc_bres34_rms >= 0.003) { GMT_psxy('-Gorange -N'); } |
|
189 |
elsif ($uc_bres34_rms >= 0.0015) { GMT_psxy('-Gyellow -N'); } |
|
190 |
else { GMT_psxy('-Ggreen -N'); } |
|
191 |
print(GMT "0.945 0.98\n0.98 0.98\n0.945 0.945\n"); |
|
192 |
if (0) { |
|
193 |
if ($dc_bres12_rms >= 0.005) { GMT_psxy('-Gred -N -Sc0.3'); } |
|
194 |
elsif ($dc_bres12_rms >= 0.003) { GMT_psxy('-Gorange -N -Sc0.3'); } |
|
195 |
elsif ($dc_bres12_rms >= 0.0015) { GMT_psxy('-Gyellow -N -Sc0.3'); } |
|
196 |
else { GMT_psxy('-Ggreen -N -Sc0.3'); } |
|
197 |
print(GMT "0.92 0.96\n"); |
|
198 |
if ($dc_bres34_rms >= 0.005) { GMT_psxy('-Gred -N -Sc0.3'); } |
|
199 |
elsif ($dc_bres34_rms >= 0.003) { GMT_psxy('-Gorange -N -Sc0.3'); } |
|
200 |
elsif ($dc_bres34_rms >= 0.0015) { GMT_psxy('-Gyellow -N -Sc0.3'); } |
|
201 |
else { GMT_psxy('-Ggreen -N -Sc0.3'); } |
|
202 |
print(GMT "0.96 0.96\n"); |
|
203 |
if ($uc_bres12_rms >= 0.005) { GMT_psxy('-Gred -N -Sc0.3'); } |
|
204 |
elsif ($uc_bres12_rms >= 0.003) { GMT_psxy('-Gorange -N -Sc0.3'); } |
|
205 |
elsif ($uc_bres12_rms >= 0.0015) { GMT_psxy('-Gyellow -N -Sc0.3'); } |
|
206 |
else { GMT_psxy('-Ggreen -N -Sc0.3'); } |
|
207 |
print(GMT "0.92 0.92\n"); |
|
208 |
if ($uc_bres34_rms >= 0.005) { GMT_psxy('-Gred -N -Sc0.3'); } |
|
209 |
elsif ($uc_bres34_rms >= 0.003) { GMT_psxy('-Gorange -N -Sc0.3'); } |
|
210 |
elsif ($uc_bres34_rms >= 0.0015) { GMT_psxy('-Gyellow -N -Sc0.3'); } |
|
211 |
else { GMT_psxy('-Ggreen -N -Sc0.3'); } |
|
212 |
print(GMT "0.96 0.92\n"); |
|
213 |
} |
|
29 | 214 |
|
54 | 215 |
GMT_pstext('-F+f14,Helvetica,blue+jTL -N'); # LABELS |
41 | 216 |
print(GMT "0.01 -0.06 $P{out_basename} [$P{run_label}]\n"); |
54 | 217 |
GMT_pstext('-F+f12,Helvetica+jTR'); |
218 |
print(GMT "0.61 0.02 m.abs.dev.\n"); |
|
41 | 219 |
GMT_pstext('-F -N'); |
220 |
print(GMT "0.32 1.12 Vertical Velocity [m/s]\n"); |
|
54 | 221 |
GMT_pstext('-F+f9,Helvetica,LightSkyBlue+jTR -N -Gwhite'); |
41 | 222 |
print(GMT "0.99 0.01 V$VERSION\n"); |
29 | 223 |
|
41 | 224 |
GMT_pstext('-F+f12,Helvetica,coral+jTL -Gwhite'); |
54 | 225 |
print(GMT "0.02 0.02 downcast\n"); |
41 | 226 |
GMT_pstext('-F+f12,Helvetica,SeaGreen+jTL -Gwhite'); |
54 | 227 |
print(GMT "0.24 0.02 upcast\n"); |
41 | 228 |
if ($have_BT) { |
54 | 229 |
GMT_pstext('-F+f12,Helvetica,black+jBL -Gwhite'); |
230 |
print(GMT "0.02 0.98 b.track\n"); |
|
41 | 231 |
} |
232 |
||
233 |
GMT_pstext('-F+f9,Helvetica,CornFlowerBlue+jTL -N'); |
|
54 | 234 |
printf(GMT "0.64 1.020 %d kHz $LADCP{INSTRUMENT_TYPE} $P{ADCP_orientation}\n", |
55
2d8e1139acd5
adapted to Nortek files
Andreas Thurnherr <ant@ldeo.columbia.edu>
parents:
54
diff
changeset
|
235 |
round($LADCP{BEAM_FREQUENCY},50)); |
47
2ccb81b7cea5
version found on whoosher after repair
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
46
diff
changeset
|
236 |
printf(GMT "0.64 1.055 %s [%.1fm/%1.fm/%1.fm]\n", |
2ccb81b7cea5
version found on whoosher after repair
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
46
diff
changeset
|
237 |
$LADCP{BEAM_COORDINATES} ? 'beam vels' : 'Earth vels', |
41 | 238 |
$LADCP{BLANKING_DISTANCE},$LADCP{TRANSMITTED_PULSE_LENGTH},$LADCP{BIN_LENGTH}); |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
239 |
print(GMT "0.64 1.090 mean tilt\n 0.77 1.096 :\n"); |
42 | 240 |
print(GMT "0.64 1.130 rms a\@-pkg\@-\n 0.77 1.1315 :\n"); |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
241 |
|
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
242 |
if ($P{dc_mean_tilt} < 4) { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
243 |
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
|
244 |
} elsif ($P{dc_mean_tilt} < 8) { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
245 |
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
|
246 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
247 |
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
|
248 |
} |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
249 |
printf(GMT "0.808 1.090 %.1f\\260\n",$P{dc_mean_tilt}); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
250 |
if ($P{uc_mean_tilt} < 4) { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
251 |
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
|
252 |
} elsif ($P{uc_mean_tilt} < 8) { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
253 |
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
|
254 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
255 |
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
|
256 |
} |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
257 |
printf(GMT "0.91 1.090 %.1f\\260\n",$P{uc_mean_tilt}); |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
258 |
|
49 | 259 |
if ($P{dc_rms_accel_pkg} < 0.1) { |
260 |
GMT_pstext('-F+f9,Helvetica,coral+jTL -Gblue -N'); |
|
261 |
} elsif ($P{dc_rms_accel_pkg} < 0.7) { |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
262 |
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
|
263 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
264 |
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
|
265 |
} |
49 | 266 |
printf(GMT "0.78 1.125 %.1fm/s\@+2\@+\n",$P{dc_rms_accel_pkg}); |
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
267 |
|
49 | 268 |
if ($P{uc_rms_accel_pkg} < 0.1) { |
269 |
GMT_pstext('-F+f9,Helvetica,SeaGreen+jTL -Gblue -N'); |
|
270 |
} elsif ($P{uc_rms_accel_pkg} < 0.7) { |
|
45
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
271 |
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
|
272 |
} else { |
6d49c7420a6c
stable V1.3beta, just before implementing bin interpolation
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
42
diff
changeset
|
273 |
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
|
274 |
} |
49 | 275 |
printf(GMT "0.89 1.125 %.1fm/s\@+2\@+\n",$P{uc_rms_accel_pkg}); |
41 | 276 |
|
46 | 277 |
my($depth_tics) = ($plot_wprof_ymax-$plot_prof_ymin < 1000 ) ? 'f10a100' : 'f100a500'; # AXES |
29 | 278 |
setR1(); |
41 | 279 |
GMT_psbasemap("-Bf0.01:'':/$depth_tics:'Depth [m]':WeS"); |
29 | 280 |
foreach my $t (split('\s+',$plot_wprof_xtics)) { |
281 |
GMT_psbasemap(sprintf('-Ba10-%fS',10-$t)); |
|
282 |
} |
|
283 |
setR2(); |
|
284 |
GMT_psbasemap('-Bf10a1000-950:" # of Samples":N'); |
|
285 |
GMT_psbasemap('-Ba1000-850N'); |
|
41 | 286 |
GMT_psbasemap('-Ba1000-750N'); |
29 | 287 |
|
288 |
GMT_end(); # FINISH PLOT |
|
289 |
} |
|
290 |
||
291 |
1; # return true on require |