[Shake-dev] Problem running historical events (~1960 and older) in V3.5 [SEC=UNCLASSIFIED]

Bruce Worden cbworden at caltech.edu
Sun Jan 9 17:54:04 UTC 2011


Hi Trevor,

Yes, there is a quirk in timegm() and timelocal() that does a weird  
+/- 50 year thing with two digit dates. I've gone through the code and  
changed things to eliminate this behavior. ShakeMap should now be able  
to handle dates from 1902 to 2038. This is a temporary fix -- I'm  
going to have to look for a new module that can handle arbitrary dates.

You can get the updated version of ShakeMap as usual with 'svn update'  
and then 'make'.

This should work on all systems, but anyone who gets the new code:  
please run an event to make sure it works correctly. There are various  
versions of the Time::Local package and I can't test them all.

Bruce


On Jan 6, 2011, at 3:06 PM, <Trevor.Allen at ga.gov.au> <Trevor.Allen at ga.gov.au 
 > wrote:

> Hi all,
>
> I’m trying to run ShakeMaps for some historical earthquakes, and it  
> appears as if there is a problem in grind in interpreting the date  
> from the event.xml.  The error is given below:
>
> ./shake -event 196002292340
> Day too big - 32931 > 24853
> Cannot handle date (0, 0, 0, 29, 1, 2060) at /usr/local/shake/bin/../ 
> bin/grind line 690
> shake: Error in grind: 65280
>
> Below is the event information parsed from the event.xml:
>
> <earthquake id="196002292340" lat="30.45" lon="-9.62" mag="6.3"
> year="1960" month="02" day="29" hour="23" minute="40" second="00"
> timezone="GMT" depth="5.0" locstring="Agadir, Morocco" type="" />
>
> It appears as if any event older than 50 years will have this  
> problem.  If I set the “year” to equal 1962, the ShakeMap will run  
> (last year 1961 worked!).
>
> Any thoughts appreciated.
>
> Thanks,
> Trev
> _______________________________________________
> Shake-dev mailing list
> Shake-dev at geohazards.usgs.gov
> https://geohazards.usgs.gov/mailman/listinfo/shake-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20110109/fd0b32fb/attachment.html>


More information about the Shake-dev mailing list