Re: why do not the results agree? [message #43586 is a reply to message #43585] |
Thu, 21 April 2005 05:45   |
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/
|
|
|