Bruce:<div><br></div><div><br></div><div>Ah ok. AQMS is a DB driven version of EW. I do not use it at the moment. </div><div><br></div><div>I know how to proceed then. I will write a python script to check for new events in the /data folder and then call ./shake &lt;event_id&gt; and put the script in a crontab.</div>

<div><br></div><div><br></div><div>Let me say again that you have been extremely helpful. I will keep on eye on the list and contribute when and where I can. </div><div><br></div><div><br></div><div>Kind Regards, </div><div>

<br clear="all"><span style="border-collapse:collapse"><font face="arial, helvetica, sans-serif" style="font-weight:normal;font-family:arial,sans-serif"><b>Branden C. Christensen</b></font><div><font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif">Director, OSOP</font></div>

<div style="font-weight:normal"><font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif"><b><span style="font-family:arial;font-weight:normal"><a href="mailto:branden.christensen@osop.com.pa" target="_blank"><font color="#0000cc">branden.christensen@</font>osop.com.pa</a></span></b></font></div>

<div><font face="arial, sans-serif"><a href="http://www.osop.com.pa" target="_blank">www.osop.com.pa</a></font></div><div style="font-weight:normal">Volcan, Panama</div><div style="font-weight:normal"><span></span><span></span><img src="https://lh6.googleusercontent.com/-bviEnZQwR1c/TyFjLS3_c-I/AAAAAAAAA34/QkVFwd3oAu4/w405-h150-k/OSOP.png"><br>

<div><div><font face="arial, helvetica, sans-serif"><span style="line-height:9px"><br></span></font></div></div></div></span><span style="border-collapse:collapse"><div style="font-weight:normal"><div><img style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-family:arial,helvetica,sans-serif;line-height:10px"></span></div>

</div></span><div><div><div><div></div></div></div></div><br>
<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 3:32 PM, Bruce Worden <span dir="ltr">&lt;<a href="mailto:cbworden@gmail.com" target="_blank">cbworden@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Hi Branden,<div><br></div><div>queue was designed to work with systems running the AQMS software. There are two programs (shake_alarm and shake_cancel) that are run (in an AQMS system they are started by database triggers, but you can also run them manually) to tell queue about a new, updated, or cancelled event. queue then accesses the AQMS database to get event info and decide whether to run the event and what priority it should be given. queue also allows you to configure automatic repeat runs, different magnitude thresholds for different geographic regions, etc.</div>

<div><br></div><div>But since you&#39;re not running AQMS, you&#39;d have to modify it. There is a program called queue_qdds that was triggered by events coming into the old QDDS system. That might be an easier target for modification. It&#39;s not my program, but I&#39;m guessing you could get it to work.</div>

<div><br></div><div>Either way, though, you will still need some kind of system to recognize new events and either kick off shake, or poke queue.</div><div><br></div><div>I don&#39;t know what other earthworm users have done in the past, but the one user that I think might be able to help you is out of the office until the 30th.</div>

<span class="HOEnZb"><font color="#888888"><div><br></div><div>Bruce</div></font></span><div><div class="h5"><div><br></div><div><br><div><div>On Jul 18, 2012, at 6:45 PM, Branden Christensen wrote:</div><br><blockquote type="cite">

Bruce:<div><br></div><div><br></div><div>Last step here. </div><div><br></div><div>I am looking to automate the production of shakemaps. It looks like I might have 2 paths:</div><div><br></div><div>1. Write a script that looks for new event folders and executes the shake -event # command and then put the script in the crontab</div>



<div><br></div><div>OR</div><div><br></div><div>2. use queue? e.g., ./queue&amp;</div><div>Will queue really work? What is the story with queue? Is it meant to run in the background like this? The manual suggests as much.</div>



<div><br></div><div><br></div><div>Best, </div><div> </div><div><br clear="all"><span style="border-collapse:collapse"><font face="arial, helvetica, sans-serif" style="font-weight:normal;font-family:arial,sans-serif"><b>Branden C. Christensen</b></font><div>



<font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif">Director, OSOP</font></div><div style="font-weight:normal"><font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif"><b><span style="font-family:arial;font-weight:normal"><a href="mailto:branden.christensen@osop.com.pa" target="_blank"><font color="#0000cc">branden.christensen@</font>osop.com.pa</a></span></b></font></div>



<div><font face="arial, sans-serif"><a href="http://www.osop.com.pa/" target="_blank">www.osop.com.pa</a></font></div><div style="font-weight:normal">Volcan, Panama</div><div style="font-weight:normal"><span></span><span></span><img><br>



<div><div><font face="arial, helvetica, sans-serif"><span style="line-height:9px"><br></span></font></div></div></div></span><span style="border-collapse:collapse"><div style="font-weight:normal"><div><img style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-family:arial,helvetica,sans-serif;line-height:10px"></span></div>



</div></span><div><div><div><div></div></div></div></div><br>
<br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 11:05 PM, Bruce Worden <span dir="ltr">&lt;<a href="mailto:cbworden@gmail.com" target="_blank">cbworden@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">You shouldn&#39;t serve the web pages directly from the events&#39; data directories -- actually that won&#39;t work because a lot of stuff will be missing. That&#39;s where &#39;transfer&#39; (or your version of it) comes in. You set it up so that you serve from &quot;&lt;some_directory&gt;/shake&quot;. Then &#39;transfer&#39; sticks the new index page there along with stuff in &quot;archive&quot; (overwriting anything that was there before) and the new event&#39;s directory. Each new event needs to update the index page and the archive, but I agree that the way it is handled leaves a lot of junk lying around in the event&#39;s working directory.<div>



<br></div><div>Before the site will work, you need to configure web.conf do &#39;make web,&#39; then go to bin and run ./transfer -permweb (see p. ~12 of the software guide for this step). transfer -permweb currently doesn&#39;t work, but there will be a fixed version in the repository by the end of today. You&#39;ll do &quot;svn update&quot; and &quot;make&quot; to get the new code. There will be a number of other fixes, too. Remember to protect your custom version of topo2grd before updating.</div>



<div><br></div><div>You may also want to go to &lt;shake&gt;/lib/genex/web/config and edit archivepages.xml to remove all of the years for which you don&#39;t have earthquakes.</div><div><br></div><div>These are old-style web pages that use almost no modern web technology. They aren&#39;t particularly pretty, and we don&#39;t really do much to update them. The USGS pages are slick and modern, but nobody has template-ized them yet, so users are either stuck with what we distribute, or they can put together their own. </div>



<span><font color="#888888"><div><br></div><div>Bruce</div></font></span><div><div><div><br></div><div><br><div><div>On Jul 17, 2012, at 2:11 PM, Branden Christensen wrote:</div><br><blockquote type="cite">

I have noticed something off though. If you create a directory for EACH event then there will be gazillions of websites:<div><br></div><div>e.g., </div><div><br></div><div><a href="http://sandbox1.osop.com.pa/shakemap/9583161/genex/web/shake/" target="_blank">http://sandbox1.osop.com.pa/shakemap/9583161/genex/web/shake/</a></div>





<div><a href="http://sandbox1.osop.com.pa/shakemap/4035/genex/web/shake/" target="_blank">http://sandbox1.osop.com.pa/shakemap/4035/genex/web/shake/</a></div><div>...</div><div>...</div><div>..</div><div>where each event has the directory structure of the entire website:</div>





<div><br></div><div>e.g., </div><div><div>osop@sandbox1:/opt/shakemap/data$ ls 9583161/genex/web/shake/archive</div><div>1999.html  2002.html  2005.html  2008.html  2011.html   major.html</div><div>2000.html  2003.html  2006.html  2009.html  2012.html   pre1999.html</div>





<div>2001.html  2004.html  2007.html  2010.html  index.html  scenario.html</div><div>osop@sandbox1:/opt/shakemap/data$ ls 4035/genex/web/shake/archive</div><div>1999.html  2002.html  2005.html  2008.html  2011.html   major.html</div>





<div>2000.html  2003.html  2006.html  2009.html  2012.html   pre1999.html</div><div>2001.html  2004.html  2007.html  2010.html  index.html  scenario.html</div><div><br></div><div><br></div><span style="border-collapse:collapse"><font face="arial, helvetica, sans-serif" style="font-weight:normal;font-family:arial,sans-serif"><b>Branden C. Christensen</b></font><div>





<font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif">Director, OSOP</font></div><div style="font-weight:normal"><font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif"><b><span style="font-family:arial;font-weight:normal"><a href="mailto:branden.christensen@osop.com.pa" target="_blank"><font color="#0000cc">branden.christensen@</font>osop.com.pa</a></span></b></font></div>





<div><font face="arial, sans-serif"><a href="http://www.osop.com.pa/" target="_blank">www.osop.com.pa</a></font></div><div style="font-weight:normal">Volcan, Panama</div><div style="font-weight:normal"><span></span><span></span><img><br>





<div><div><font face="arial, helvetica, sans-serif"><span style="line-height:9px"><br></span></font></div></div></div></span><span style="border-collapse:collapse"><div style="font-weight:normal"><div><img style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-family:arial,helvetica,sans-serif;line-height:10px"></span></div>





</div></span><div><div><div><div></div></div></div></div><br>
<br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 9:04 PM, Bruce Worden <span dir="ltr">&lt;<a href="mailto:cbworden@gmail.com" target="_blank">cbworden@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div style="word-wrap:break-word">Nice. Thanks for letting us know. Now you just need to get the files dumped into directories &quot;&lt;evid&gt;/input&quot;, kick off shake, and you&#39;re good to go.<div><br></div><div>





Bruce</div><div><br><div><div><div><div>On Jul 17, 2012, at 1:20 PM, Branden Christensen wrote:</div><br></div></div><blockquote type="cite"><div><div>Hi all:<div><br></div><div><br></div><div>to generate  _dat.xml files: gmew</div>





<div>to generate event.xml files: localmag</div><div><br></div><div>:)</div><div><br></div><div>e.g., </div><div><br></div><div>ls /opt/shakemap/data:</div>

<div>...</div><div>4034_0_event.xml</div><div>4034_1_event.xml</div><div>4034_2_event.xml</div><div>4034_dig_dat.xml</div><div>9583161</div><div>tmp</div><div><br></div><div><br clear="all"><span style="border-collapse:collapse"><font face="arial, helvetica, sans-serif" style="font-weight:normal;font-family:arial,sans-serif"><b>Branden C. Christensen</b></font><div>







<font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif">Director, OSOP</font></div><div style="font-weight:normal"><font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif"><b><span style="font-family:arial;font-weight:normal"><a href="mailto:branden.christensen@osop.com.pa" target="_blank"><font color="#0000cc">branden.christensen@</font>osop.com.pa</a></span></b></font></div>







<div><font face="arial, sans-serif"><a href="http://www.osop.com.pa/" target="_blank">www.osop.com.pa</a></font></div><div style="font-weight:normal">Volcan, Panama</div><div style="font-weight:normal"><span></span><span></span><img><br>







<div><div><font face="arial, helvetica, sans-serif"><span style="line-height:9px"><br></span></font></div></div></div></span><span style="border-collapse:collapse"><div style="font-weight:normal"><div><img style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-family:arial,helvetica,sans-serif;line-height:10px"></span></div>







</div></span><div><div><div><div></div></div></div></div><br>
<br><br><div class="gmail_quote">On Fri, Jul 13, 2012 at 6:48 PM, Branden Christensen <span dir="ltr">&lt;<a href="mailto:branden.christensen@osop.com.pa" target="_blank">branden.christensen@osop.com.pa</a>&gt;</span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all:<div><br></div><div><br></div><div>I am looking to get my ShakeMap installation (thanks Bruce) to work with the output from Earthworm&#39;s gmew. </div>







<div><br></div><div>At the moment I have gmew configured to write to &lt;shakemap_home&gt;/data:</div>
<div><br></div><div><div>osop@sandbox1:/opt/shakemap/data$ ls</div><div>3739_dig_dat.xml  3743_dig_dat.xml  3744_dig_dat.xml  9583161</div></div><div><br></div><div>From the manual and the example &quot;9583161&quot; I see that gmew is not doing everything I need. I appear to be lacking the formation of a directory specific to EACH event and an event.xml file. </div>








<div><br></div><div>Your insights are very much appreciated. </div><div><br></div><div><br></div><div>Kind Regards, </div><div><br clear="all"><span style="border-collapse:collapse"><font face="arial, helvetica, sans-serif" style="font-weight:normal;font-family:arial,sans-serif"><b>Branden C. Christensen</b></font><div>








<font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif">Director, OSOP</font></div><div style="font-weight:normal"><font face="arial, helvetica, sans-serif" style="font-family:arial,sans-serif"><b><span style="font-family:arial;font-weight:normal"><a href="mailto:branden.christensen@osop.com.pa" target="_blank"><font color="#0000cc">branden.christensen@</font>osop.com.pa</a></span></b></font></div>








<div><font face="arial, sans-serif"><a href="http://www.osop.com.pa/" target="_blank">www.osop.com.pa</a></font></div><div style="font-weight:normal">Volcan, Panama</div><div style="font-weight:normal"><span></span><span></span><img><br>








<div><div><font face="arial, helvetica, sans-serif"><span style="line-height:9px"><br></span></font></div></div></div></span><span style="border-collapse:collapse"><div style="font-weight:normal"><div><img style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-family:arial,helvetica,sans-serif;line-height:10px"></span></div>








</div></span><div><div><div><div></div></div></div></div><br>
</div>
</blockquote></div><br></div></div></div>
_______________________________________________<br>Shake-dev mailing list<br><a href="mailto:Shake-dev@geohazards.usgs.gov" target="_blank">Shake-dev@geohazards.usgs.gov</a><br><a href="https://geohazards.usgs.gov/mailman/listinfo/shake-dev" target="_blank">https://geohazards.usgs.gov/mailman/listinfo/shake-dev</a><br>





</blockquote></div><br></div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>