[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: contour fill
Stephen O'Sullivan (firstname.lastname@example.org) 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
> Any help would be greatly appreciated!
valuesIwant = Where(dataArray GE lowContourLevel $
AND dataArray LE highContourLevel)
result = Mean(dataArray[valuesIwant])
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155