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

Home » Public Forums » archive » How to obtain contour data through contour command?
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: How to obtain contour data through contour command? [message #86262 is a reply to message #86259] Tue, 22 October 2013 06:14 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
On 2013-10-22 14:12, jacobsvensmark@gmail.com wrote:
> So I have regularly gridded f(x,y) values, and I wish to know for which x,y I have f(x,y)=k. I imagine this is exactly what the contour command does, though I don't believe it can only plot the curve, not output the curve in an array.

The array indices are easy to find:

IDL> f = [[1, 2, 3], [2, 3, 2]]
IDL> print, f
1 2 3
2 3 2
IDL> print, array_indices(f, where(f eq 2))
1 0
0 1
2 1

If the x and y coordinates are different from the grid indices you will
need to use the indices to get them. How that is done depends on how
those coordinates are specified.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using Minimum operator with NaN values
Next Topic: Strange error: % Keyword parameters not allowed in call.

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

Current Time: Wed Oct 08 19:30:26 PDT 2025

Total time taken to generate the page: 0.00363 seconds