[Shake-dev] ShakeMap installation and user inquiries

Branden Christensen branden.christensen at osop.com.pa
Thu Jul 5 19:23:08 UTC 2012


Hi All:


Buenos dias.

Despite the warning in the ShakeMap manual against installing ShakeMap on
Ubuntu, I went for it anyway as my whole operation runs on Ubuntu.


*The Installation*
OS: Ubuntu 10.04 64 bit

It looks like the compile was a success, barring the following warnings:
...
make[2]: Entering directory `/opt/shakemap/src/contour'
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c contour.c
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c shpopen.c
shpopen.c: In function 'SHPOpen':
shpopen.c:421: *warning: ignoring return value of 'fread', declared with
attribute warn_unused_result*
shpopen.c:431: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
shpopen.c:510: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
shpopen.c: In function 'SHPReadObject':
shpopen.c:1286: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c dbfopen.c
dbfopen.c: In function 'DBFOpen':
dbfopen.c:337: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c:357: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFClose':
dbfopen.c:416: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFWriteAttribute':
dbfopen.c:947: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFWriteTuple':
dbfopen.c:1156: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
dbfopen.c: In function 'DBFReadTuple':
dbfopen.c:1200: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
/usr/bin/cc  -L/usr/lib -L/usr/lib contour.o shpopen.o dbfopen.o  -lgmt
-lnetcdf -lpsl -lm -o contour
/usr/bin/install -m 0755 contour /opt/shakemap/bin
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -c
sm_nearneighbor45.c -o sm_nearneighbor.o
sm_nearneighbor45.c: In function 'main':
sm_nearneighbor45.c:259: *warning: passing argument 3 of
'GMT_check_lattice' from incompatible pointer type*
/usr/include/gmt/gmt_init.h:74: note: expected 'BOOLEAN *' but argument is
of type 'GMT_LONG *'
sm_nearneighbor45.c:259: warning: passing argument 4 of 'GMT_check_lattice'
from incompatible pointer type
/usr/include/gmt/gmt_init.h:74: note: expected 'BOOLEAN *' but argument is
of type 'GMT_LONG *'
sm_nearneighbor45.c:448: warning: passing argument 4 of
'GMT_y_out_of_bounds' from incompatible pointer type
/usr/include/gmt/gmt_boundcond.h:54: note: expected 'BOOLEAN *' but
argument is of type 'GMT_LONG *'
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c ga10.c
/usr/bin/cc  -L/usr/lib -L/usr/lib sm_nearneighbor.o ga10.o  -lgmt -lnetcdf
-lpsl -lm -o sm_nearneighbor
/usr/bin/install -m 0755 sm_nearneighbor /opt/shakemap/bin
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c
dist_rrupt.c
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c vector.c
/usr/bin/cc  dist_rrupt.o vector.o -lm -o dist_rrupt
/usr/bin/install -m 0755 dist_rrupt /opt/shakemap/bin
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c dist_rx.c
/usr/bin/cc  dist_rx.o -lm -o dist_rx
/usr/bin/install -m 0755 dist_rx /opt/shakemap/bin
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c
directivity.c
/usr/bin/cc -O -I . -I /usr/include/gmt -I /usr/include -DGMT45 -c nrfuncs.c
/usr/bin/cc  directivity.o vector.o nrfuncs.o -lm -o directivity
/usr/bin/install -m 0755 directivity /opt/shakemap/bin
make[2]: Leaving directory `/opt/shakemap/src/contour'
...

Are either of these warnings something to be concerned about? No other
errors or failures were reported.

Binaries generated include:
-rwxr-xr-x 1 root root  10364 Jul  4 14:11 addon
-rwxr-xr-x 1 root root  10497 Jul  4 14:13 ana2xml
-rwxr-xr-x 1 root root   7390 Jul  4 14:11 cancel
-rwxr-xr-x 1 root root   6346 Jul  4 14:13 cdmg2xml
-rwxr-xr-x 1 root root   6302 Jul  4 14:11 ciimcdi2xml
-rwxr-xr-x 1 root root   6880 Jul  4 14:13 ciimuscdi2xml
-rwxr-xr-x 1 root root   5662 Jul  4 14:11 cleanup
-rwxr-xr-x 1 root root   3881 Jul  4 14:11 config
-rwxr-xr-x 1 root root   9001 Jul  4 14:11 configconfig
-rw-r--r-- 1 root root   5546 Jul  4 14:11 configmacro
-rwxr-xr-x 1 root root  56411 Jul  4 14:11 contour
-rwxr-xr-x 1 root root   7571 Jul  4 14:13 csvnsmp2xml
-rwxr-xr-x 1 root root   8341 Jul  4 14:13 cube2xml
-rwxr-xr-x 1 root root  23969 Jul  4 14:14 db2xml
-rwxr-xr-x 1 root root  10725 Jul  4 14:14 dig2xml
-rwxr-xr-x 1 root root  26417 Jul  4 14:11 directivity
-rwxr-xr-x 1 root root   1062 Jul  4 14:13 dirwatch
-rwxr-xr-x 1 root root  17661 Jul  4 14:11 dist_rrupt
-rwxr-xr-x 1 root root   9037 Jul  4 14:11 dist_rx
-rwxr-xr-x 1 root root     95 Jul  4 14:11 echo
-rwxr-xr-x 1 root root   4956 Jul  4 14:14 eq2xml
-rwxr-xr-x 1 root root    831 Jul  4 14:11 fix_cities
-rwxr-xr-x 1 root root  33840 Jul  4 14:11 genex
-rwxr-xr-x 1 root root  11553 Jul  4 14:12 getdyfi
-rwxr-xr-x 1 root root   6090 Jul  4 14:11 geterror
-rwxr-xr-x 1 root root   6590 Jul  4 14:12 getnsmp
-rwxr-xr-x 1 root root 147573 Jul  4 14:11 grind
-rwxr-xr-x 1 root root  11503 Jul  4 14:14 hist2xml
-rwxr-xr-x 1 root root  11411 Jul  4 14:12 iiscale
-rwxr-xr-x 1 root root   5561 Jul  4 14:14 jbest2xml
-rwxr-xr-x 1 root root  11268 Jul  4 14:14 knet2xml
-rwxr-xr-x 1 root root   9992 Jul  4 14:12 makeMMIsiteTable
-rwxr-xr-x 1 root root 107823 Jul  4 14:11 mapping
-rwxr-xr-x 1 root root   5016 Jul  4 14:11 mktables
-rwxr-xr-x 1 root root   7545 Jul  4 14:14 nsmp2xml
-rwxr-xr-x 1 root root   6645 Jul  4 14:14 obs2xml
-rwxr-xr-x 1 root root   3997 Jul  4 14:11 pending
-rwxr-xr-x 1 root root  12014 Jul  4 14:12 pgmscale
-rwxr-xr-x 1 root root  79208 Jul  4 14:12 plot_vs30
-rwxr-xr-x 1 root root   6084 Jul  4 14:11 plotdirect
-rwxr-xr-x 1 root root  37837 Jul  4 14:11 plotregr
-rwxr-xr-x 1 root root  12465 Jul  4 14:11 print
-rwxr-xr-x 1 root root    545 Jul  4 14:12 qtmbin2ascii
-rwxr-xr-x 1 root root  47865 Jul  4 14:11 queue
-rwxr-xr-x 1 root root  49497 Jul  4 14:11 queue_qdds
-rwxr-xr-x 1 root root   5198 Jul  4 14:11 retrieve
-rwxr-xr-x 1 root root   6960 Jul  4 14:14 richt2xml
-rwxr-xr-x 1 root root   5571 Jul  4 14:14 scenario2xml
-rwxr-xr-x 1 root root  13863 Jul  4 14:11 setversion
-rwxr-xr-x 1 root root  15658 Jul  4 14:11 shake
-rwxr-xr-x 1 root root    917 Jul  4 14:11 shake_alarm
-rwxr-xr-x 1 root root    926 Jul  4 14:11 shake_cancel
-rwxr-xr-x 1 root root  18270 Jul  4 14:11 shakemail
-rwxr-xr-x 1 root root  27777 Jul  4 14:11 sm_nearneighbor
-rwxr-xr-x 1 root root  13006 Jul  4 14:11 tag
-rwxr-xr-x 1 root root  10054 Jul  4 14:12 topo2grd
-rwxr-xr-x 1 root root  60643 Jul  4 14:11 transfer
-rwxr-xr-x 1 root root   5182 Jul  4 14:12 tvscale
-rwxr-xr-x 1 root root   2545 Jul  4 14:11 unlock
-rwxr-xr-x 1 root root  76710 Jul  4 14:12 view_rcg
-rwxr-xr-x 1 root root   9125 Jul  4 14:11 web
-rwxr-xr-x 1 root root   7768 Jul  4 14:12 zone_config

So it looks like everything was compiled. From reading the configuration
files, I do not notice that anything obvious is missing here.


I have chosen to use the following perl modules as most of the historic
versions are NOT available at http://backpan.perl.org/:
Bundle::LWP v5.835
DBD::mysql v4.021
HTML::Template v2.91
XML::Parser v2.41
XML::Write rv0.615
enum v1.016
Time::CTime v2011.0517
Event v1.20
Mail::Sender v08.21
Config::General  v2.50
XML::Simple v2.20
Time::y2038 v20100403

and then there is GMT: v4.5.1-1


*Questions*
Just a few simple questions:

1. In an attempt to confirm that everything is working OK, I tried to
execute shake over the example data included with ShakeMap at
<shakemap_home>/data called "9583161".

I entered <shakemap_home>/bin and ran:
./shake -event 9583161 -verbose

the output was:
shake: Running: '/opt/shakemap/bin/../bin/retrieve -event 9583161'
shake: Running: '/opt/shakemap/bin/../bin/pending -event 9583161'
transfer: Unable to access 9583161 download dir from /opt/shakemap/bin
shake: Done with 'pending'
shake: Running: '/opt/shakemap/bin/../bin/grind -event 9583161 -qtm -xml'
cp: cannot stat `/tmp.topo2grd.24763.grd': No such file or directory
grdsample: Could not find file [/tmp.topo2grd.24763.grd.1]
Could not find /tmp.topo2grd.24763.grd, aborting.
grind: Error: Error in topo/sitecorr map creation, exiting.
shake: Error in grind: 256

How do I set about fixing the transfer error? I have already
reviewed <shakemap_home>/config/transfer.conf for mistakes.

I then tried to locate tmp.topo2grd.24763.grd and came up empty handed.
Perhaps this is created when transfer succeeds.


2. I see that Earthworm's gmew outputs files to .../input/. e.g.,

998_dig_dat.xml

So I will set the paths so that this information is written to
<shakemap_home>/data/input.

Any other important bits?


3. Was the added functionality in gmew enough to be a wholesale replacement
to shakemapfeed?


4. Do there exists alternatives to ShakeMap with less overhead (less email,
less websites, etc.)? Something similar to the PSD plots calculated by
obspy as an alternative to configuring an entire PQLX? ShakeMap appears to
be a great distribution system. But I am also interested in a simple tool
that just outputs pngs of the ShakeMaps themselves.



Thank you for your insights and comments.



Kind Regards,


*Branden C. Christensen*
Director, OSOP
*branden.christensen at osop.com.pa*
www.osop.com.pa
Volcan, Panama
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20120705/58da0fe9/attachment.html>


More information about the Shake-dev mailing list