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

Home » Public Forums » archive » Labelling Highs/Lows 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: Labelling Highs/Lows in contour [message #12576 is a reply to message #12501] Fri, 14 August 1998 00:00 Go to previous message
Amit Ghosh is currently offline  Amit Ghosh
Messages: 7
Registered: July 1998
Junior Member
In article <35D3CD90.E94C3B56@earthling.nospam.net>,
Phillip & Suzanne David <pdavid@earthling.nospam.net> wrote:
> David Fanning wrote:
>>
>> Amit (amit@physics.utoronto.ca) writes:
>>
>>> Is there a way to automatically label highs and lows on a contour plot ?
For
>>> example place an L or H in a trough or peak respectively.
>>
> At a guess, I would write the contour the usual way, then find the max and min
> of the underlying data, calculate coordinates into the plot based on the
> locations of the max and min, and place (in overplot mode -- I don't remember
> the name of the function to do this) an L at the min and an H at the max.
> That's the simplest algorithm I can think of.
>
>> P.S. Does anyone know how to find the slope of
>> a 2D array. :-(
>

Finding maxes and mins in the data (I guess what David was hinting at by
asking to find the deriv of a 2D array) and labelling every one of them is
easy, but that's not the question I asked. I only want to determine if the
contour surrounds a high or low and label it appropriately. I don't want to
label extrema between contours or multiple extrema within one contour. Of
course only simple and elegant solutions are acceptable. :)

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL Velocity Streamline Procedure ??
Next Topic: Re: executing a .sav file by double clicking it.

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

Current Time: Tue Dec 02 08:48:39 PST 2025

Total time taken to generate the page: 0.40094 seconds