Re: solution for GMT and ps2epsi

2002-03-25 Thread Walter Smith
Malte,

There are two or maybe three issues here:
(1) the floating point result obtained inside GMT seems to depend on the
hardware and/or compiler used, with bad effects for at least one flavor of
linux;
(2) GMT should be robust enough that it doesn't generate a problem, even if
the floating point math is not very good;
(3) The display of GMT-created PostScript seems to depend on the debian gs
version.

John Kuhn narrowed down issue (1) enough that Paul has found a solution,
and this will be included as a bug fix in future releases.  This will solve
(1) and (2).

Issue 1 may still be interesting for the debian linux community, but I
can't tell from your last email which machines/compilers create and do not
create the problem.  Maybe John has narrowed this down.

Your email seems to be about issue 3:  Even when GMT generates PostScript
one way, how it displays for you depends on whether you use debian gs or
debian gs-aladdin.  This may be an important problem, but sounds like it is
not a GMT problem.

walter


Malte Thoma wrote:
> 
> I have found a solution for the problem.
> 
> the debian 'gs' package contains
>  >gs -v
>  >GNU Ghostscript 6.53 (2002-02-13)
>  >Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
> 
> which is NOT compatible to the postscript code GMT creates
> the debian 'gs-aladdin' package contains
>  >gs -v
>  >AFPL Ghostscript 7.00 (2001-04-08)
>  >Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
> 
> if you install 'gs-aladdin' instead of 'gs'
> 1. ps2epsi works and
> 2. the problem descriped at the bottom of this page disappears
> 
> ... but I still do nit understand the reason.
> Is the aladdin-gs 'better' than the GNU-Version?
> 
> Greetings,
> Malte
> 
> Paul Wessel wrote:
> > John Kuhn wrote:
> >
> >
> >>Walter & Paul,
> >>
> >>A user posted about a GMT bug on the debian-user mailing list this morning.
> >>This bug appears with GMT 3.4 and 3.4.1 on Debian Linux, but not SuSE
> >>Linux, HP-UX or Solaris.  My initial investigation indicates a problem
> >>with rounding/floating point errors.  The user's original script produced
> >>invalid PostScript (gv didn't like it).  I reduced the original script to
> >>the following one liner for debugging.
> >>
> >>psxy -R-180/180/-90/90 -JN0/15 -Sc0.15 -G0 << END > my.ps
> >>2.5  52.5
> >>END
> >>
> 
> Hallo,
> I am the 'user' John talked about :-)
> I do not realy understand the discussion here, but the small gmt-code
> above gives a result where 'gv' and 'ghostscript' shows the same.
> 
> My example was a little bit more complex, but I have reduced it to:
> 
> __
> #!/bin/bash
> AUS=ant_sites.ps
> 
> REG=-R0/360/-90/90
> PRO=-JN0/15
> 
> pstext -V $REG $PRO tmp < $AUS
> 2.5 50.5 10 0 0 CT Amsterdam
> -73.6 38.9 10 0 0 CT New York
> END
> 
> gv $AUS
> ghostview $AUS
> __
> 
> here 'gv' does only show the last line, while 'ghostview' shows all.

-- 
Dr. Walter H. F. Smith, Geophysicist   phone: 301-713-2860, ext. 126
NOAA Lab for Satellite Altimetry, code E/RA31  fax: 301-713-4598
1315 East-West Highway, room 3600 mailto:[EMAIL PROTECTED]
Silver Spring MD 20910-3282http://ibis.grdl.noaa.gov/SAT


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: solution for GMT and ps2epsi

2002-03-25 Thread John Kuhn
On Sat, Mar 23, 2002 at 10:34:51AM +0100, Malte Thoma wrote:
> I have found a solution for the problem.
> 
> the debian 'gs' package contains
>  >gs -v
>  >GNU Ghostscript 6.53 (2002-02-13)
>  >Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
> 
> which is NOT compatible to the postscript code GMT creates
> the debian 'gs-aladdin' package contains
>  >gs -v
>  >AFPL Ghostscript 7.00 (2001-04-08)
>  >Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
> 
> if you install 'gs-aladdin' instead of 'gs'
> 1. ps2epsi works and
> 2. the problem descriped at the bottom of this page disappears
> 
> ... but I still do nit understand the reason.
> Is the aladdin-gs 'better' than the GNU-Version?

> > John Kuhn wrote:
> >>
> >>psxy -R-180/180/-90/90 -JN0/15 -Sc0.15 -G0 << END > my.ps
> >>2.5  52.5
> >>END
> >>

This really is a bug in GMT, not a questions of which gs is better.  For
your example, and many variations, including the small example above,
GMT is producing incorrect PostScript.  For some variations of your example
using a certain version of gs, it might display as you expect, but the 
PostScript is still incorrect.  If you look at the PostScript output from
the above expample you will see a few "near MAX_INTs" in the output (search
for 21474).  These are incorrect.  The authors of GMT are now aware of the
problem and are working on a patch.

John


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: solution for GMT and ps2epsi

2002-03-23 Thread Eric G. Miller
On Sat, Mar 23, 2002 at 10:34:51AM +0100, Malte Thoma wrote:
> I have found a solution for the problem.
> 
> the debian 'gs' package contains
> >gs -v
> >GNU Ghostscript 6.53 (2002-02-13)
> >Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
> 
> which is NOT compatible to the postscript code GMT creates
> the debian 'gs-aladdin' package contains
> >gs -v
> >AFPL Ghostscript 7.00 (2001-04-08)
> >Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
> 
> if you install 'gs-aladdin' instead of 'gs'
> 1. ps2epsi works and
> 2. the problem descriped at the bottom of this page disappears
> 
> ... but I still do nit understand the reason.
> Is the aladdin-gs 'better' than the GNU-Version?

Mainly a difference in age.  Did you not notice both are copyright by
artofcode?  Presumably, the newer "gs-aladdin" is going to be a little
better than the older ones released under GPL.

-- 
Eric G. Miller 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]