Re: grdmath problems

Branden Christensen <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <CAK3C9dXRBjSEs-44bAyeWtqZnBLXrSCWEpe_HHt4+t2QDdPoMw@mail.gmail.com>
Hi all:


Marcelo, thank you for taking the time to try that.

I just created a new, virgin virtual machine with 12.04:

osop@shakemap:~$ uname -a
Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
osop@shakemap:~$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l

I then installed GMT 4.5.11 from source.

And then I attempted:

osop@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
osop@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
osop@shakemap:~$  /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65
MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW
MUL = 3.grd
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated

So I am getting the same results....


Kind 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
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <[email protected]>wrote:

> Hi,
>
> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
> source code.
>
> Regards,
>
> Marcelo
>
>
>
> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <[email protected]>wrote:
>
>> Hi,
>>
>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>> on this list.  On
>>
>>   jjg@flounder ~ $ cat /etc/issue
>>   Linux Mint 16 Petra \n \l
>>
>> with
>>
>>   jjg@flounder ~ $ apt-cache policy gmt
>>   gmt:
>>     Installed: 4.5.7-2ubuntu1
>>     Candidate: 4.5.7-2ubuntu1
>>     Package pin: 4.5.7-2ubuntu1
>>     Version table:
>>        4.5.9-1 1001
>>         500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>   Packages
>>    *** 4.5.7-2ubuntu1 1001
>>         500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>   Packages
>>         100 /var/lib/dpkg/status
>>
>> This achieved with
>>
>>   jjg@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>   Package: gmt
>>   Pin: release n=raring*
>>   Pin-Priority: 1001
>>
>>   Package: gmt-doc
>>   Pin: release v=13.04, l=Ubuntu
>>   Pin-Priority: 1001
>>
>>   Package: libgmt4
>>   Pin: release v=13.04, l=Ubuntu
>>   Pin-Priority: 1001
>>
>>   Package: *
>>   Pin: release v=13.04, l=Ubuntu
>>   Pin-Priority: -1
>>
>> I get no error for
>>
>>   jjg@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>   jjg@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>   jjg@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
>> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
>> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
>> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
>> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> and
>>
>>   jjg@flounder ~ $ ls -l *.grd
>>   -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>   -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>   -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>
>> perhaps you could revert to 4.5.7 too
>>
>> Cheers
>>
>> Jim
>> --
>> J.J. Green,  Seaview Sensing Ltd.,
>> http://seaviewsensing.com
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> [email protected]
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> [email protected]
>

To unsubscribe, send the message "signoff gmt-help" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.