[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: solution for GMT and ps2epsi



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 <<END > $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:walter@raptor.grdl.noaa.gov
Silver Spring MD 20910-3282                http://ibis.grdl.noaa.gov/SAT


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: