[Shake-dev] ShakeMap update, and New Year

Bruce Worden cbworden at gmail.com
Mon Jan 9 20:12:32 UTC 2012


Hi Folks,

There is a new update to ShakeMap available in the repository.

o Fixed bug in the way transfer handled custom config files via -config.

o Added a new program "cleanup" and its associated config file "cleanup.conf". This is an optional program that allows you to delete files and directories from within the processing sequence. See cleanup.conf for how to configure cleanup. For an example on using the program within a processing sequence, see the doc for the "program" parameter within shake.conf. The purpose of this program is to remove redundant or unneeded files following a processing run, or to thin out the files transferred between runs (!) of transfer. (Yes, you can now run transfer more than once -- see the doc in shake.conf for how to do that.)

o Because of the new cleanup capability, the production of the contents.xml file has been moved from genex to transfer. The contents are produced by each run of transfer based on the files in the download directory.

o To support zone_config2, grind now looks for a file called grind_zc2.conf in the config directories before looking for grind.conf in the default config directory. The order of precedence is: 1) config file specified on the command line with -config; 2) grind.conf in the event's config directory; 3) grind_zc2.conf in the event's config directory; 4) grind_zc2.conf in the default config directory; 5) grind.conf in the default config directory. (Note that the zone_config2 program is not yet available.)

o Modifications to getdyfi, nsmp2xml, cube2xml, obs2xml to support Global ShakeMap (kwl).

o Update to archivepages.xml to create a web site archive page for 2012 and close out 2011.

To get the new code, do the usual "svn update" and "make". You will need to review shake.conf, as it has been updated to support cleanup. You'll also have to set up cleanup within shake.conf, and configure cleanup.conf, if you want to use it. As always, make sure to test your system after installing the update.

If you don't install the update immediately, you should at least update your ShakeMap archive pages (assuming you use the ShakeMap-generated web pages):

In shake/lib/genex/web/config, you need to edit archivepages.xml. Close out the entry for 2011 and make a new open entry for 2012. Your entries should look something like this:

<archivepages template="archive">
  <page filename="2012" label="2012"
        title="Archive of ShakeMaps from 2012">
    <start month="01" day="01" year="2012"/>
  </page>

  <page filename="2011" label="2011"
        title="Archive of ShakeMaps from 2011">
    <start month="01" day="01" year="2011"/>
    <end   month="12" day="31" year="2011"/>
  </page>

Happy New Year,
Bruce





More information about the Shake-dev mailing list