[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contour fill



On Fri, 25 Aug 2000, David Fanning wrote:

> Stephen O'Sullivan (so@amsta.leeds.ac.uk) writes:
> 
> > I am trying to get IDL to isolate the values contained within a closed
> > contour of a plotted data array. Basically, I want to perform a
> > calculation using these values instead of cloouring them in like /fill
> > does.
> > 
> > Any help would be greatly appreciated!
> 
>   valuesIwant = Where(dataArray GE lowContourLevel $
>       AND dataArray LE highContourLevel)
>   result = Mean(dataArray[valuesIwant])
> 

Thanks for your help but the problem that I didn't really make clear is
that I need all the values contained within the specified closed contour,
not just those above or below the contour value. In this sense it's a
geometric thing.

Cheers, Steve

===========================================================================
Dr Stephen O'Sullivan                 | Telephone: +44-113-2335187 
Department of Applied Mathematics     | Facsimile: +44-113-2429925
University of Leeds		      | Email    : so@amsta.leeds.ac.uk   
Leeds LS2 9JT UK                      | WWW: www.amsta.leeds.ac.uk/applied    
===========================================================================