[Shake-dev] Postscript delegate failed

Bruce Worden cbworden at gmail.com
Thu Nov 21 01:23:04 UTC 2013


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. 

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.

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/20131120/90a16258/attachment.html>


More information about the Shake-dev mailing list