Re: grdmath problems

Marcelo Banik <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <CAN-U1_Y_Kf_J+RLY=iTESGpWYc=wyW6_-O8tOFX1mWBR7Or9Xg@mail.gmail.com>
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]
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.