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

Home » Public Forums » archive » tracing contours, how?
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: tracing contours, how? [message #10829 is a reply to message #10730] Thu, 22 January 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Thorsten Becker (becker@fas.harvard.edu) writes:

> I am trying to trace a special contour line in a 2D field, t, to
> get the coordinates in data units. I tried
>
> CONTOUR, t, PATH_XY=xy, PATH_INFO=info, levels=contourlevels
> k = 0
> FOR i=0, (N_ELEMENTS(info) - 1 ) DO BEGIN
> FOR j=0, info(i).n-1 DO BEGIN
> IF((info(i).value EQ tracecontourvalue)THEN BEGIN
> print, info(i).value, xy(0, k+j), xy(1, k+j)
> ENDIF
> ENDFOR
> k = j
> ENDFOR
>
> and was hoping that this would trace the polygons and give me all points
> in normalized units if the contourvalue is tracecontourlevel. I got the
> right contour, but the points it printed didn't really make sense. Why?
> Did anybody solve this problem with IDL?

Perhaps I don't understand this question, but why won't
this work:

CONTOUR, t, PATH_XY=xy, /Path_Data_Coords, $
levels=tracecontourvalue

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Programming Position in Baltimore
Next Topic: I want to know more about IDL

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

Current Time: Sun Oct 12 14:51:44 PDT 2025

Total time taken to generate the page: 0.72178 seconds