[Shake-dev] Postscript delegate failed
Bruce Worden
cbworden at gmail.com
Thu Nov 21 20:14:35 UTC 2013
Okay, so I don't understand what's going on. It looks like the command we thought was breaking isn't actually breaking. Can you remove the exit() line, do "make", and then run grind with -debug set, and pipe both stdout and stderr into a file, then send me the file?
Thanks,
Bruce
On Nov 21, 2013, at 11:57 AM, Branden Christensen <branden.christensen at osop.com.pa> wrote:
> Bruce:
>
>
> No errors were printed.
>
> It created a binary file:
>
> osop at osop-displays2:~$ wc -l junk.grd
> 6398 junk.grd
>
>
> Best regards,
>
>
> 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 4:29 PM, Bruce Worden <cbworden at gmail.com> wrote:
> Hi Branden,
>
> Sorry, I didn't get back to you last night -- was out most of the evening. Try to run the command:
>
> grdmath -R-128.900000/-108.900000/26.323000/42.803000 -I0.025/0.025 -fg junk.xy PDIST 27.47 HYPOT = junk.grd
>
> That's all one line. "junk.xy" is a file you create that contains the single line:
>
> -118.900000 34.56300
>
> Let me know what happens.
>
> Bruce
>
> On Nov 21, 2013, at 4:46 AM, Branden Christensen <branden.christensen at osop.com.pa> wrote:
>
>> 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.
>>
>>
>
>
> _______________________________________________
> 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/20131121/40046a0d/attachment.html>
More information about the Shake-dev
mailing list