comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Trouble with IDL 5.0.2 (filled contours) unsolved?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Trouble with IDL 5.0.2 (filled contours) unsolved? [message #11063 is a reply to message #11061] Wed, 04 March 1998 00:00 Go to previous messageGo to previous message
hcp is currently offline  hcp
Messages: 41
Registered: August 1995
Member
In article <34FBFD71.3F54@dmi.dk>, Mikael Barfred <mb@dmi.dk> writes:
|> Mikael Barfred wrote:
|> >
|> > Hello,
|> >
|> > I have searched dejanews for articles in this newsgroup regarding
|> > the filled contour problems in IDL 5.0.2. I got a handfull of
|> > recent articles on this, indicating that I am not the only
|> > frustrated IDL 5.0.2 user, but none of them had a solution
|> > or even an explanation to the problem, so I will try to raise
|> > the question again:
|> > [ ... SNIP! ...]

[The snipped stuff is that the cell_fill keyword causes your plot to degenerate
into a mess of flashing triangles]

|> Oops! Looking further on the net, I came across:
|>
|> http://www.dfanning.com/idl5_info/cell_fill.html
|>
|> which seems to indicate that the problem has already been raised
|> to RSI, and a response is pending.

When I brought this up a few months ago, RSI supplied a work-around.
The work-around is to use this short wrapper function to contour instead of
contour itself.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PRO CONTOUR_CELL, z, x, y, _EXTRA=e
; This program was supplied by RSI as a fix for the bugs in the
; cell_fill algorithm of the contour
; routine. contour_cell,data,xgrid,ygrid,/cell_fill will work where
; contour ,data,xgrid,ygrid,/cell_fill will not

nx = n_elements(x) ;Divide a rectangular grid into
;triangles
ny = n_elements(y)
tr = lonarr(6, nx-1, ny-1, /NOZERO)
for iy=0, ny-2 do for ix=0,nx-2 do $ ;Make the triangles
tr(0, ix, iy) = [0, 1, nx+1, 0, nx+1, nx] + (ix + iy*nx)
;2/cell
CONTOUR, z, x # replicate(1,ny), replicate(1,nx) # y, $
TRIANGULATION=tr, _EXTRA=e
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Hugh

--

============================================================ ==============
Hugh C. Pumphrey | Telephone 0131-650-6026
Department of Meteorology | FAX 0131-662-4269
The University of Edinburgh | Replace 0131 with +44-131 if outside U.K.
EDINBURGH EH9 3JZ, Scotland | Email hcp@met.ed.ac.uk
OBDisclaimer: The views expressed herein are mine, not those of UofE.
============================================================ ==============
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NN IDL Freeware
Next Topic: general matrix multiplication

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:13:02 PDT 2025

Total time taken to generate the page: 2.48103 seconds