-
Notifications
You must be signed in to change notification settings - Fork 2
/
plot_eq_proj.sh
executable file
·562 lines (510 loc) · 16.8 KB
/
plot_eq_proj.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
#!/bin/bash
version="2.0.0"
# //////////////////////////////////////////////////////////////////////////////
# HELP FUNCTION
function help {
echo "/******************************************************************************/"
echo " Program Name : plot_eq_proj.sh"
echo " Version : v${version}"
echo " Purpose : Plot earthquakes of NOA catalogue for Greece and projection"
echo " Default param file: default-param"
echo " Usage : plot_eq.sh -r west east south north | | -o [output] | -jpg "
echo " Switches: "
echo " -r [:= region] region to plot west east south north (default Greece)"
echo " use: -r west east south north projscale frame"
echo " -param (paramfile) change default parmeters file"
echo " -mt [:= map title] title map default none use quotes"
echo " -updcat [:= update catalogue] title map default none use quotes"
echo " -topo [:= update catalogue] title map default none use quotes"
echo " -faults [:= faults] plot NOA fault database"
echo " -histeq [:= historic eq ] plot historical eq via papazachos catalogue"
echo " -cat (file) [:=catalog] use altern catalog, default NOA"
echo ""
echo "/*** EARTHQUAKE OPTIONS **********************************************************/"
echo " -minmw [:= minimum magnitude] bug use only int"
echo " -maxmw [:= maximum magnitude] bug use only int"
echo " -starty [:= start year] "
echo " -stopy [:= stop year] "
echo ""
echo "/*** EARTHQUAKE OPTIONS **********************************************************/"
echo " -eqproj [:=projection] plot projectio along profile"
echo " use -eqproj lon lat Az Lmin Lmax Wmin Wmax depth"
echo ""
echo "/*** OTHER OPRTIONS ************************************************************/"
echo " -o [:= output] name of output files"
echo " -l [:=labels] plot labels"
echo " -leg [:=legend] insert legends"
echo " -logo [:=logo] plot logo"
echo " -jpg : convert eps file to jpg"
echo " -h [:= help] help menu"
echo " Exit Status: 1 -> help message or error"
echo " Exit Status: >= 0 -> sucesseful exit"
echo ""
echo "run: ./plot_eq_proj.sh -topo -faults -jpg -leg -eqproj [parameters]"
echo "/******************************************************************************/"
echo " History:"
echo " 2017.xx.xx : Initial v1.0.1 version"
echo " 2023.08.02 : turn to GMT v6.3"
exit 1
}
# //////////////////////////////////////////////////////////////////////////////
# GMT parameters
gmt gmtset MAP_FRAME_TYPE fancy
gmt gmtset PS_PAGE_ORIENTATION portrait
gmt gmtset FONT_ANNOT_PRIMARY 10 FONT_LABEL 10 MAP_FRAME_WIDTH 0.12c FONT_TITLE 18p
# //////////////////////////////////////////////////////////////////////////////
# Pre-defined parameters for bash script
# REGION="greece"
TOPOGRAPHY=0
FAULTS=0
LABELS=0
LOGO=0
OUTJPG=0
LEGEND=0
UPDCAT=0
HISTEQ=0
EQPROJ=0
# # //////////////////////////////////////////////////////////////////////////////
# # Set PATHS parameters
# pth2dems=${HOME}/Map_project/dems
# # pth2nets=${HOME}/Map_project/4802_SEISMO/networks
# inputTopoL=${pth2dems}/ETOPO1_Bed_g_gmt4.grd
# inputTopoB=${pth2dems}/ETOPO1_Bed_g_gmt4.grd
# pth2logos=$HOME/Map_project/logos
# pth2faults=$HOME/Map_project/faults/NOAFaults_v1.0.gmt
# //////////////////////////////////////////////////////////////////////////////
# Set default files
outfile=plot_eq_proj.eps
out_jpg=plot_eq_proj.jpg
landcpt=land_man.cpt
bathcpt=bath_man.cpt
# maptitle=""
# set default caalog NOA
eqcatalog=full_NOA.catalog
pth2param=default-param
# # //////////////////////////////////////////////////////////////////////////////
# # Set default REGION for GREECE
# west=19
# east=30.6
# south=33
# north=42
# projscale=6000000
# frame=2
# //////////////////////////////////////////////////////////////////////////////
# Set default magnitude interval
minmw=4
maxmw=10
# //////////////////////////////////////////////////////////////////////////////
# Set default time period
starty=2000
stopy=$(date --date="-1 day" +%Y)
# //////////////////////////////////////////////////////////////////////////////
# GET COMMAND LINE ARGUMENTS
if [ "$#" == "0" ]
then
help
fi
while [ $# -gt 0 ]
do
case "$1" in
-r)
west=$2
east=$3
south=$4
north=$5
projscale=$6
frame=$7
# REGION=$2
shift
shift
shift
shift
shift
shift
shift
;;
-param)
pth2param=$2
shift
shift
;;
-mt)
maptitle=$2
shift
shift
;;
-updcat)
UPDCAT=1
shift
;;
-minmw)
minmw=$2
shift
shift
;;
-maxmw)
maxmw=$2
shift
shift
;;
-starty)
starty=$2
shift
shift
;;
-stopy)
stopy=$2
shift
shift
;;
-topo)
# switch topo not used in server!
TOPOGRAPHY=1
shift
;;
-faults)
FAULTS=1
shift
;;
-histeq)
HISTEQ=1
shift
;;
-cat)
eqcatalog=$2
shift
shift
;;
-eqproj)
EQPROJ=1
prclon=$2
prclat=$3
praz=$4
prlmin=$5
prlmax=$6
prwmin=$7
prwmax=$8
prdepth=$9
shift
shift
shift
shift
shift
shift
shift
shift
shift
;;
-o)
outfile=${2}.eps
out_jpg=${2}.jpg
shift
shift
;;
-l)
LABELS=1
shift
;;
-leg)
LEGEND=1
shift
;;
-logo)
LOGO=1
shift
;;
-jpg)
OUTJPG=1
shift
;;
-h)
help
;;
esac
done
#///START
echo "/******************************************************************************/"
echo " Program Name : plot_eq_proj.sh"
echo " Version : v${version}"
echo " Purpose : Plot earthquakes of NOA catalogue for Greece and projection"
echo " Parameters file: ${pth2param}"
echo "/******************************************************************************/"
# //////////////////////////////////////////////////////////////////////////////
#LOAD DEFAULT PARAMETERS
##//////////////////check default param
if [ ! -f ${pth2param} ]
then
echo "ERROR: parameters file does not exist, use default or another one"
exit 1
else
echo "... load default parameters file ..."
source ${pth2param}
fi
# //////////////////////////////////////////////////////////////////////////////
# check if files exist
if [ "$EQPROJ" -eq 0 ]
then
echo "If you will not plot profile just use plot_eq.sh script"
exit 1
fi
###check dems
if [ "$TOPOGRAPHY" -eq 1 ]
then
if [ ! -f $inputTopoB ]
then
echo "grd file for topography toes not exist, var turn to coastline"
TOPOGRAPHY=0
fi
fi
###check NOA catalogue
if [ ! -f $eqcatalog ]
then
echo "NOA CATALOGUE does not exist, will be doanloaded, use -updcat switch next time"
UPDCAT=1
fi
###check HISTORIC earthquakes
if [ ! -f papazachos_db ]
then
echo "Historic eq database does not exist, scr will not plot these data"
HISTEQ=0
fi
###check NOA FAULT catalogue
if [ "$FAULTS" -eq 1 ]
then
if [ ! -f $pth2faults ]
then
echo "NOA Faults database does not exist"
echo "please download it and then use this switch"
FAULTS=0
fi
fi
###check LOGO file
if [ ! -f "$pth2logos" ]
then
echo "Logo file does not exist"
LOGO=0
fi
# out=cascadia_seis.ps # This will be the name of your map generated by this file
# seis_data=NCEDC_Search_Results.dat # ANSS earthquake catalog
# topo=../../dems/greeceSRTM.grd # ETOPO1 topography grid
# tick='-B2/2WSen'
#
# proj='-Jm24/37/1:6000000'
# //////////////////////////////////////////////////////////////////////////////
# SET REGION PROPERTIES
#these are default for GREECE REGION
gmt gmtset PS_MEDIA 26cx28c
scale="-Lf20/33.5/36:24/100+l+jr"
range="-R$west/$east/$south/$north"
proj="-Jm24/37/1:$projscale"
logo_pos="BL/11.2c/0.2c/DSO[at]ntua"
logo_pos2="-C16c/7.3c"
legendc="-Jx1i -R0/8/0/8 -Dx18.5c/19.6c/3.6c/3.5c/BL"
maptitle="Seismicity from $starty to $stopy"
# //////////////////////////////////////////////////////////////////////////////
# UPDATE NOA CATALOGUE
if [ "$UPDCAT" -eq 1 ]
then
wget http://www.gein.noa.gr/services/full_catalogue.php -O full_NOA.catalogue
fi
# ####################### TOPOGRAPHY ###########################
if [ "$TOPOGRAPHY" -eq 0 ]
then
################## Plot coastlines only ######################
gmt psbasemap $range $proj $scale -B$frame:."$maptitle": -P -K -Y8.5c > $outfile
gmt pscoast -R -J -O -K -W0.25 -G195 -Df -Na -U$logo_pos >> $outfile
# pscoast -Jm -R -Df -W0.25p,black -G195 -U$logo_pos -K -O -V >> $outfile
# psbasemap -R -J -O -K --FONT_ANNOT_PRIMARY=10p $scale --FONT_LABEL=10p >> $outfile
fi
if [ "$TOPOGRAPHY" -eq 1 ]
then
# ####################### TOPOGRAPHY ###########################
# bathymetry
gmt makecpt -Cgebco -T-7000/0/150 -Z > $bathcpt
gmt grdimage $inputTopoB $range $proj -C$bathcpt -K -Y8.5c> $outfile
gmt pscoast $proj -P $range -Df -Gc -K -O >> $outfile
# land
gmt makecpt -Cgray -T-3000/1800/50 -Z > $landcpt
gmt grdimage $inputTopoL $range $proj -C$landcpt -K -O >> $outfile
gmt pscoast -R -J -O -K -Q >> $outfile
#------- coastline -------------------------------------------
gmt psbasemap -R -J -O -K -B$frame:."$maptitle": --FONT_ANNOT_PRIMARY=10p $scale --FONT_LABEL=10p >> $outfile
gmt pscoast -J -R -Df -W0.25p,black -K -O -U$logo_pos >> $outfile
fi
# psbasemap -R$west/$east/$south/$north $proj $tick -P -Y12 -K > $out
#
# makecpt -Crelief -T-8000/8000/500 -Z > topo.cpt
#
# grdimage $topo -R -J -O -K -Ctopo.cpt >> $out
#
# pscoast -R -J -O -K -W0.25 -G195 -Df -Na -Ia -Lf-130.8/46/10/200+lkm >> $outfile
#////////////////////////////////////////////////////////////////
# PLOT NOA CATALOGUE FAULTS Ganas et.al, 2013
if [ "$FAULTS" -eq 1 ]
then
echo "plot NOA FAULTS CATALOGUE Ganas et.al, 2013 ..."
gmt psxy $pth2faults -R -J -O -K -W.5,204/102/0 >> $outfile
fi
#////////////////////////////////////////////////////////////////
# PLOT Historic catalogue, Papazachos
if [ "$HISTEQ" -eq 1 ]
then
# awk '{print $8,$7,$9}' tmp-eq34 | psxy -R -J -O -K -W.1 -Sc.11 -Cseis2.cpt>> $outfile
echo "plot HISTORIC Earthquakes, Papazachos ana Papazachou catalogue"
awk -F, '{print $5,$4,$7}' papazachos_db | gmt psxy -R -J -O -K -W.1 -Ss.11 -Gblack >> $outfile
fi
#////////////////////////////////////////////////////////////////
#create temporary earthquake files
#select with years
awk 'NR != 2 {if ($1>='$starty' && $1<'$stopy') print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' $eqcatalog > tmp-eq1
#select with magnitude
# awk 'NR != 2 {if ($10>='$minmw' && $10<='$maxmw') print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq1 > tmp-eq2
cat tmp-eq1>tmp-eq2
#split to magnitude categories
awk 'NR != 0 {if ($10>=0 && $10<2) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq2 > tmp-eq02
awk 'NR != 0 {if ($10>=2 && $10<3) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq2 > tmp-eq23
awk 'NR != 0 {if ($10>=3 && $10<4) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq2 > tmp-eq34
awk 'NR != 0 {if ($10>=4 && $10<5) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq2 > tmp-eq45
awk 'NR != 0 {if ($10>=5 && $10<6) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq2 > tmp-eq56
awk 'NR != 0 {if ($10>=6 && $10<8) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}' tmp-eq2 > tmp-eq68
# start create legend file .legend
echo "G 0.2c" > .legend
# echo "H 10 Times-Roman FROM: $starty" >> .legend
# echo "H 10 Times-Roman TO: $stopy" >> .legend
echo "G 0.2c" > .legend
echo "H 11 Times-Roman Magnitude" >> .legend
echo "D 0.3c 1p" >> .legend
echo "N 1" >> .legend
#////////////////////////////////////////////////////////////////
#plot
gmt makecpt -Cseis -T0/150/10 -Z > seis2.cpt
if [ "$minmw" -lt 2 ] && [ "$maxmw" -gt 2 ]
then
awk '{print $8,$7,$9}' tmp-eq02 | gmt psxy -R -J -O -K -W.1 -Sc.05 -Cseis2.cpt>> $outfile
cat tmp-eq02 >> tmp-proj
echo "G 0.25c" >> .legend
echo "S 0.4c c 0.05c 160 0.22p 0.9c Mw < 2" >> .legend
fi
if [ "$minmw" -lt 3 ] && [ "$maxmw" -gt 2 ]
then
awk '{print $8,$7,$9}' tmp-eq23 | gmt psxy -R -J -O -K -W.1 -Sc.09 -Cseis2.cpt>> $outfile
cat tmp-eq23 >> tmp-proj
echo "G 0.25c" >> .legend
echo "S 0.4c c 0.09c 160 0.22p 0.9c 2 =< Mw < 3" >> .legend
fi
if [ "$minmw" -lt 4 ] && [ "$maxmw" -gt 3 ]
then
awk '{print $8,$7,$9}' tmp-eq34 | gmt psxy -R -J -O -K -W.1 -Sc.11 -Cseis2.cpt>> $outfile
cat tmp-eq34 >> tmp-proj
echo "G 0.25c" >> .legend
echo "S 0.4c c 0.11c 160 0.22p 0.9c 3 =< Mw < 4" >> .legend
fi
if [ "$minmw" -lt 5 ] && [ "$maxmw" -gt 4 ]
then
awk '{print $8,$7,$9}' tmp-eq45 | gmt psxy -R -J -O -K -W.1 -Sc.15 -Cseis2.cpt>> $outfile
cat tmp-eq45 >> tmp-proj
echo "G 0.25c" >> .legend
echo "S 0.4c c 0.15c 160 0.22p 0.9c 4 =< Mw < 5" >> .legend
fi
if [ "$minmw" -lt 6 ] && [ "$maxmw" -gt 5 ]
then
awk '{print $8,$7,$9}' tmp-eq56 | gmt psxy -R -J -O -K -W.1 -Sc.25 -Cseis2.cpt>> $outfile
cat tmp-eq56 >> tmp-proj
echo "G 0.25c" >> .legend
echo "S 0.4c c 0.25c 160 0.22p 0.9c 5 =< Mw < 6" >> .legend
fi
if [ "$minmw" -lt 10 ] && [ "$maxmw" -gt 6 ]
then
awk '{print $8,$7,$9}' tmp-eq68 | gmt psxy -R -J -O -K -W.1 -Sa.8 -Cseis2.cpt >> $outfile
cat tmp-eq68 >> tmp-proj
echo "G 0.25c" >> .legend
echo "S 0.4c a 0.8c 160 0.22p 0.9c 6 =< Mw" >> .legend
fi
# awk '{print($4,$3,$5)}' $seis_data | psxy -R -J -O -K -W.1 -Sc.1 -Cseis.cpt -H15 >> $out
gmt psscale -D19.7c/3.1c/-4c/0.6c -B50:Depth:/:km: -Cseis2.cpt -O -K >> $outfile
# psxy center.dat -R -J -O -K -W1 -Sc.3 -G255/0/0 >> $out
# psxy center.dat -R -J -O -K -W5/255/0/0 >> $out
# ////////////////////////////////////////////////////PLOT PROJECTION!!! ////////////////////////////////
# awk '{print($4,$3,$5)}' $seis_data | project -C21/36 -A45 -W-.2/.2 -L0/4 -H15 > projection.dat
#
#
# east=25
# west=21
# dmin=0
# dmax=50
#
# proj=-JX15/-5
# tick=-B1:Longitude:/10:Depth:WSen
#
#
# awk '{print($6,$3)}' projection.dat | psxy -R$west/$east/$dmin/$dmax $proj $tick -W1 -Sc.2 -G200 -O -Y-8 -P >> $out
echo "G 0.2c" >> .legend
echo "D 0.3c 1p" >> .legend
echo "G 0.3c" >> .legend
# echo "B seis2.cpt 0.2i 0.2i" >> .legend
echo "T Earthquake data automated recovered via NOA catalogue" >> .legend
echo "G 1.6c" >> .legend
echo "D 0.3c 1p" >> .legend
echo "T NOA FAULTS CATALOGUE after Ganas et.al, 2013" >> .legend
# ////////////////////////////////////////////////////PLOT PROJECTION!!! ////////////////////////////////
if [ "$EQPROJ" -eq 1 ]
then
# awk '{print($8,$7,$9)}' tmp-eq45 | project -C21/36 -A90 -W-1/1 -L0/4 > projection.dat
awk '{print($8,$7,$9)}' tmp-proj | gmt project -C${prclon}/${prclat} -A${praz} -Fxyzpqrs -W${prwmin}/${prwmax} -L${prlmin}/${prlmax} -V -Q> projection.dat
awk '{print $1, $2}' projection.dat | gmt psxy -R -J -O -K -Sc0.1 -G0/0/0 >>$outfile
# awk '{print $6,$7}' projection.dat | gmt psxy -R -J -O -K -Sc0.1 -G0/0/255 >>$outfile
prtw=$(sort -k6 -k7 projection.dat | head -n1 | awk '{print $6}')
prts=$(sort -k6 -k7 projection.dat | head -n1 | awk '{print $7}')
echo "$prtw $prts 13 0 1 RT A" | gmt pstext -Jm -R -G180 -O -V -K >> $outfile
prte=$(sort -k6 -k7 projection.dat | tail -n1 | awk '{print $6}')
prtn=$(sort -k6 -k7 projection.dat | tail -n1 | awk '{print $7}')
echo "$prte $prtn 13 0 1 LB B" | gmt pstext -Jm -R -G180 -O -V -K >> $outfile
echo "$prtw $prts" > tmp-line
echo "$prte $prtn" >>tmp-line
gmt psxy tmp-line -R -J -O -K -W1,blue >> $outfile
west=${prlmin}
east=${prlmax}
dmin=0
dmax=$prdepth
dstep=$(echo print $dmax/6 | python)
proj=-JX17.5/-5
tick=-B50:Distance\(km\):/$dstep:Depth\(km\):WSen
# proj="-Jx0.2/0.2"
# tick="-Ba5f5g0/a5f5g0"
awk '{print $4,$3}' projection.dat | gmt psxy -R$west/$east/$dmin/$dmax $proj $tick -W1 -Sc.1 -G200 -O -Y-6.5c -P -K >> $outfile
echo "$west $dmin 13 0 1 LT A" | gmt pstext -J -R -Dj0c/0.3c -G180 -Y.9c -O -V -K >> $outfile
echo "$east $dmin 13 0 1 RT B" | gmt pstext -J -R -Dj0c/0.3c -G180 -O -V -K >> $outfile
fi
echo "9999 9999" | gmt psxy -J -R -Y-.9c -K -O >> $outfile
echo "G 1.5c" >> .legend
echo "D 0.3c 1p" >> .legend
echo "G 0.5c" >> .legend
# echo "B seis2.cpt 0.2i 0.2i" >> .legend
# echo "T Earthquake data automated recovered via NOA catalogue" >> .legend
# ///////////////// PLOT LEGEND //////////////////////////////////
if [ "$LEGEND" -eq 1 ]
then
gmt pslegend .legend ${legendc} -C0.1c/0.1c -L1.3 -O -K >> $outfile
fi
#/////////////////PLOT LOGO DSO
if [ "$LOGO" -eq 1 ]
then
gmt psimage $pth2logos -O $logo_pos2 -W1.1c -F0.4 -K >>$outfile
fi
#//////// close eps file
echo "9999 9999" | gmt psxy -J -R -O >> $outfile
#################--- Convert to jpg format ----##########################################
if [ "$OUTJPG" -eq 1 ]
then
gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=$out_jpg $outfile
fi
# ///////////////// REMOVE TMP FILES //////////////////////////////////
rm tmp-*
rm .legend
rm *cpt
rm projection.dat
# NOA FAULTS reference
# Ganas Athanassios, Oikonomou Athanassia I., and Tsimi Christina, 2013. NOAFAULTS: a digital database for active faults in Greece. Bulletin of
# the Geological Society of Greece, vol. XLVII and Proceedings of the 13th International Congress, Chania, Sept. 2013.
# historic eq papazachos reference
echo $?