[Shake-dev] Postscript delegate failed
Branden Christensen
branden.christensen at osop.com.pa
Thu Nov 21 02:53:47 UTC 2013
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/33a58e88/attachment-0001.html>
More information about the Shake-dev
mailing list