[Shake-dev] problem in genex
Bruce Worden
cbworden at gmail.com
Fri Jan 23 20:30:09 UTC 2015
Thanks for the bug report. And thanks to Tim for helping resolve the issue.
I believe I understand the cause of this issue (as Tim described it comes from a mismatch between and event's directory name and the event ID given in the event.xml file). I have revised the code to use only the event ID given on the command line (and thus the event's directory name), and to ignore the ID in event.xml. I've also added code to the archive pages to exclude entries in the earthquake table with null tabsol or tzone.
The fixed code will be in the next release.
Bruce
On Jan 22, 2015, at 12:00 PM, Sergio Arregui Ojeda <sarregui at cicese.mx> wrote:
> Hi Tim,
>
> Thanks! that did the trick. I guess that this error is when genex is
> doing the archive pages, and finds the null value and doesn't knows
> what to do with it.
>
> Sergio.
>
>
>> Hi Sergio,
>>
>> I am not sure they are related but I had a similar problem and the
>> solution
>> was to remove some entries in the earthquake table that had null values
>> for
>> tabsol and tzone. It happened to me because I ran a scenario and the
>> directory name for the input/event.xml file did not match the earthquake
>> id
>> in the event.xml file and shake created 2 entries in the earthquake table,
>> one of which had the null values I described above.
>>
>> So please take a look at your earthquake table for records with null
>> values
>> for the 2 fields mentioned, and hopefully that is the issue.
>>
>> Tim
>>
>> On Thu, Jan 22, 2015 at 11:43 AM, Sergio Arregui <sarregui at cicese.mx>
>> wrote:
>>
>>> Hi All,
>>>
>>> we are having problems in genex since last december, before this
>>> worked
>>> ok. Here is a sample of the output and the error, has anybody
>>> experienced
>>> something similar, does someone knows how to fix this?
>>>
>>> {shake at postproc:bin} ./shake -event 60029286 -verbose
>>> shake started event 60029286 at Thu Jan 22 18:26:25 2015
>>> 2015-01-22 18:26:25 : shake: Running:
>>> '/home/shake/sfw/shakemap/src/bin/../bin/retrieve
>>> -event 60029286'
>>> 2015-01-22 18:26:26 : db2xml: No amps available for event 60029286 in
>>> database rtdb2
>>> 2015-01-22 18:26:26 : db2xml: db2xml child 3: returned 1
>>> 2015-01-22 18:26:26 : db2xml: At least 23 stations available for event
>>> 60029286
>>> 2015-01-22 18:26:26 : shake: Running:
>>> '/home/shake/sfw/shakemap/src/bin/../bin/grind
>>> -event 60029286 -qtm -xml -boundcheck -gmpesc -lonspan 3.0'
>>> Uncertainty computation skipped (no Intensity > 6.0)
>>> 2015-01-22 18:26:34 : shake: Done with 'grind'
>>> 2015-01-22 18:26:34 : shake: Running:
>>> '/home/shake/sfw/shakemap/src/bin/../bin/tag
>>> -event 60029286'
>>> 2015-01-22 18:26:34 : shake: Done with 'tag'
>>> 2015-01-22 18:26:34 : shake: Running:
>>> '/home/shake/sfw/shakemap/src/bin/../bin/mapping
>>> -event 60029286 -timestamp -itopo'
>>> Printing grade - (-0.000)
>>> 2015-01-22 18:27:17 : shake: Done with 'mapping'
>>> 2015-01-22 18:27:17 : shake: Running:
>>> '/home/shake/sfw/shakemap/src/bin/../bin/genex
>>> -event 60029286 -zip -metadata -shape shape'
>>> The 'hour' parameter (undef) to DateTime::new was an 'undef', which is
>>> not
>>> one of the allowed types: scalar
>>> at /usr/local/lib/perl/5.14.2/DateTime.pm line 195
>>> DateTime::new(undef, 'year', undef, 'month', undef, 'day',
>>> undef,
>>> 'hour', undef, ...) called at
>>> /home/shake/sfw/shakemap/src/bin/../perl/lib/Genex/Html.pm
>>> line 741
>>> Genex::Html::tabsol2dt(undef, undef) called at
>>> /home/shake/sfw/shakemap/src/bin/../perl/lib/Genex/ArchivePages.pm line
>>> 364
>>> Genex::ArchivePages::set_params('Genex::ArchivePages=HASH(0x31a0e28)',
>>> 'HASH(0x2f8d908)') called at
>>> /home/shake/sfw/shakemap/src/bin/../perl/lib/Genex/Html.pm
>>> line 273
>>> Genex::Html::fill_templates('HASH(0x2f8d908)') called at
>>> /home/shake/sfw/shakemap/src/bin/../bin/genex line 525
>>> main::main() called at
>>> /home/shake/sfw/shakemap/src/bin/../bin/genex
>>> line 243
>>> Error in genex: 65280
>>>
>>> Thank you
>>>
>>> Cheers!
>>>
>>> Sergio Arregui
>>> CICESE
>>> Mexico
>>> _______________________________________________
>>> Shake-dev mailing list
>>> Shake-dev at geohazards.usgs.gov
>>> https://geohazards.usgs.gov/mailman/listinfo/shake-dev
>>>
>>
>>
>>
>> --
>> Tim MacDonald
>> IT Specialist
>>
>> Earthquake Science Center
>> U.S. Geological Survey
>> 345 Middlefield Rd., MS-977
>> Menlo Park, CA 94025
>> (650) 329-5141
>>
>
> _______________________________________________
> Shake-dev mailing list
> Shake-dev at geohazards.usgs.gov
> https://geohazards.usgs.gov/mailman/listinfo/shake-dev
More information about the Shake-dev
mailing list