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

Home » Public Forums » archive » problem with TRIANGULATION option in CONTOUR
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: problem with TRIANGULATION option in CONTOUR [message #73139 is a reply to message #73053] Mon, 25 October 2010 17:29 Go to previous messageGo to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On 10/25/10 3:06 PM, Ardhuin wrote:
> Well, this is exactly what I do not want to do: I want to use my
> triangulation because it contains the information on the grid
> connectivity (islands are "holes" in the grid where the contouring
> should not do any filling).
>
> I have put the basic dataset at this ftp address:
> ftp://ftp.ifremer.fr/ifremer/cersat/products/gridded/wavewat ch3/TOOLS/IDL/BUG/
> with some illustrative plots. The standard contour fills everything,
> including land. If I do a TRIGRID before a TV then I get want I want:
> land and Islands are blank... but I'd like to do this with contour to
> use the native data resolution...
>

Hi,

When I load the data you have posted and generate the triangulation I
get a different number of triangles than you. You can see this in the
output of help - note that tri2 has 19160 vertices. Also, you clip the
maximum Z value when you use TRIGRID but you don't specify it for
CONTOUR. I don't know if these are important issues, but perhaps you
are unwittingly comparing apples to oranges?

Cheers,
Ben

IDL> .full_reset
IDL> restore, filename =
"/Users/Shared/data/tri/TRIANGULATION_MARSEILLE.sav"
IDL> TRIANGULATE, x, y, tri2

IDL> help

% At $MAIN$
DX FLOAT = 0.273573
DY FLOAT = 0.223977
RANGEX FLOAT = Array[2]
RANGEY FLOAT = Array[2]
TRI LONG = Array[3, 18326]
TRI2 LONG = Array[3, 19160]
X FLOAT = Array[9626]
Y FLOAT = Array[9626]
Z FLOAT = Array[9626]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help! (where is all the Help that used to be in 7?)
Next Topic: Spell checking code

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

Current Time: Wed Oct 08 19:36:24 PDT 2025

Total time taken to generate the page: 0.00268 seconds