[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ferret - problems with Fprint (gksm2ps)



Hi Paul,
Ferret is not set up to process the words -inf and inf for levels in a palette file. Interesting that it works at all. It's a good idea to make it do so, and I've put it on our list of future improvements. You get a prize for that, and also the pretty-palette-of-the-week award.

Ansley



Paul Young wrote:
Hi all,

Whilst we're on the subject of gksm2ps , I've recently had a problem
with converting *.plt to *.ps....
I have made my own colour palette to match the NASA lidar ozone plots
(see http://asd-www.larc.nasa.gov/lidar/data/tra13no1.gif for example).
I have included the contents of the colour bar (By_values) file below.

The problem is that the postscript file generated from Fprint/gksm2ps
contains 'NaN's, which I think are due to me specifying colour levels
for '-inf' and 'inf'. The problem can be resolved by using sed to edit
the postscript file (something like $ sed 's/NaN/1.0/g' in.ps > out.ps)
and the plot looks fine. But, is this a bug in gksm2ps? If so, do I win
a prize for spotting it!?

Thanks for any comments,

Paul

p.s. Here's my palette file

RGB_Mapping_By_value
!SetPt Red Green Blue
-inf 100 100 100
0 100 54.902 100
4 86.667 43.529 100
8 73.333 32.157 100
12 60 21.176 100
16 46.667 9.804 100
20 69.804 100 100
24 52.157 80 100
28 34.902 60 100
32 17.255 40 100
36 0 20 100
40 74.902 100 74.902
44 56.078 100 56.078
48 37.255 100 37.255
52 18.431 100 18.431
56 0 100 0
60 100 100 0
64 100 81.176 0
68 100 62.353 0
72 100 43.529 0
76 100 24.706 0
80 100 0 0
84 84.706 0 5.882
88 69.804 0 12.157
92 54.902 0 18.431
96 40 0 24.706
100 0 0 0
inf 0 0 0



--

~> ~> ~> ~> ~> ~> ~> ~> ~> ~> ~>
Ansley Manke, NOAA/PMEL ansley.b.manke@noaa.gov
7600 Sand Point Way NE, Seattle WA
Phone 206-526-6246, FAX 206-526-6744



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement