[Shake-dev] Postscript delegate failed
Branden Christensen
branden.christensen at osop.com.pa
Thu Nov 21 12:46:41 UTC 2013
Bruce:
Top of the morning. I must have been feeling lazy last night :) Adding the
print statement was breezy:
osop at osop-displays2:/opt/shakemap/bin$ ./grind -event 9583161 -qtm -verbose
-lonspan 20.0
Using Borcherdt-style site corrections.
Map bound: -128.900000/-108.900000/26.323000/42.803000
*HELLO WORLD!!!!!!! Printing grdpars variable:
-R-128.900000/-108.900000/26.323000/42.803000 -I0.025/0.025 -fg*
GMT_grd_is_global: no!
GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0, nyp
= 0
GMT_grd_is_global: no!
/opt/shakemap/bin/../bin/topo2grd 9583161
-128.900000/-108.900000/26.323000/42.803000 0.025/0.025 regime=active
Using /opt/shakemap/dem. Final resolution fixed at 0.025.
Kind Regards from Panama,
*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
On Thu, Nov 21, 2013 at 1:53 AM, Branden Christensen <
branden.christensen at osop.com.pa> wrote:
> Bruce:
>
>
> I respond in line below.
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
>
>
> On Thu, Nov 21, 2013 at 12:23 AM, Bruce Worden <cbworden at gmail.com> wrote:
>
>> Hi Branden,
>>
>> grdmath: Given domain implies y_inc = 0.0250076
>> grdmath: (/opt/shakemap/bin/../data/9583161/output/aoAW4ogoKK.xy) PDIST
>> 27.47 HYPOT = /opt/shakemap/bin/../data/9583161/output/piUp3VSmhj.grd
>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>
>>
>> This appears to occur at line 165 of Distance.pm.
>>
>> `$gmtbin/grdmath$v $grdpars $epifile PDIST$hypot = $distfile`;
>>
>> My approach would be to cd to <shake_home>/src/lib and edit Distance.pm.
>> Immediately following this line, add a line with "exit(0);" on it. Save the
>> file and quit the editor. Then do "make". Go back to bin and run grind as
>> usual. It will quit, but should leave the .xy file behind. See what's in
>> that file; it should be just a line with a longitude and latitude. If it's
>> something else, that's an issue.
>>
> osop at osop-displays2:/opt/shakemap/bin$ cat
> ../data/9583161/richter/xRGN1Kclm2.xy
> -118.900000 34.563000
>
>
>> Also, I'm not seeing the grid parameters in the output you supplied. You
>> can put a "print" statement just before the grdmath line and print out
>> what's in "$grdpars". That may tell us something as well.
>>
> Can you be more specific? In the grind binary?
>
>>
>> Finally, you can try to run the command manually: "grdmath <whatever is
>> in $grdpars> <file.xy> PDIST HYPOT = junk.grd". Does that still produce the
>> error?
>>
>> Bruce
>>
>> P.S. Don't forget to remove the exit line from Distance.pm and do "make"
>> when you're done.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20131121/3c3ccf08/attachment.html>
More information about the Shake-dev
mailing list