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

Re: contour fill



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])

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155