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

Home » Public Forums » archive » Re: why do not the results agree?
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: why do not the results agree? [message #43586 is a reply to message #43585] Thu, 21 April 2005 05:45 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
lixiaoyao writes:

> You are right,when you plot it,it is the same.but the problem is when
> I output the xy data to the file.and plot it again,it give the wrong
> data just like I send to you.
> contour,R,x,y,level=[0.892521],path_xy=xy,$
> path_info=info,closed=0,/path_double
> for I=0,(N_ELEMENTS(info)-1) DO BEGIN
> S=[INDGEN(info(I).N),0]
> print,xy(*,INFO(I).OFFSET+S)
> the proble is in there,when I copy this to a data file,it is the
> wrong result?
>
> plots,xy(*,INFO(I).OFFSET+S),/norm, color=1, linestyle=2
> endfor
> thank you for your help

It's still raining here, so I can't get out in the garden...

It is not clear to me what you think is "wrong" about it.
A contour line is a series of XY points in space. That's
what this line is. It describes a particular contour
in your data space. It is absolutely correct.

Perhaps you want the XY points in data coordinates,
rather than the normalized coordinates that you have.
If so, just set up your data coordinate space and
convert these coordinates to it. They are in normalized
coordinates space to make the transformation to any
coordinate system you like easy for you. Use Convert_Coord
to do the transformation *after* you have established
your data coordinate system (I.e., after you have
issued the CONTOUR command).

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idlwave-launch-idlhelp doesn't help
Next Topic: IDLWAVE Questions (?)

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

Current Time: Sun Oct 12 04:44:26 PDT 2025

Total time taken to generate the page: 0.64097 seconds