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

Home » Public Forums » archive » Re: CONTOURing one dimension data
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: CONTOURing one dimension data [message #79163 is a reply to message #79162] Tue, 07 February 2012 12:11 Go to previous messageGo to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Feb 7, 12:46 am, shambhu <shambhu.mc...@gmail.com> wrote:
> Hi,
>
> I have a structured data of one dimension (ex: data.field14). I want
> to contour it over a continents map. How to CONTOUR one dimension
> data.
>
> Please help me.

Hi,

I'm not sure I understand completely, but since a contour identifies
groups of similar value in a set, then you could use VALUE_LOCATE to
group your data.

x = randomu(seed, 100)
plot,x

; use value_locate to assign x-values into the sets 0-0.25,
0.25-0.5, ... left side open, right side closed (I think)
ix = VALUE_LOCATE([0.0, 0.25, 0.5, 0.75], x)

;
; Dr. Fanning, please don't look. Thanks.
;
device, decomposed = 0
tek_color
for i = 0, 99 do plots,i,x[i], psym = 6, col = ix[i] + 1


Is that what you mean? I'm a little fuzzy about putting it on a map.
Without locational info, how would you know where to place it on the
map?

If you actually have Lon, Lat values associated with each of your
points, then you can use

cgContour, data, lon, lat, ...

and you are good to go! http://www.idlcoyote.com/idldoc/cg/cgcontour.html


Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wanted Professionals
Next Topic: Re: 32 vs 64 bit idl memory acces

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

Current Time: Fri Oct 10 15:03:45 PDT 2025

Total time taken to generate the page: 0.35168 seconds