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

Home » Public Forums » archive » Hovmoller
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: Hovmoller [message #89123 is a reply to message #89122] Fri, 25 July 2014 13:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tjc0010@uah.edu writes:

> Well I have about 20 files and will want to show eastward propagation with time

Ah, so you have more than one file. As Wesley says in the Princess
Bride, "Why didn't you mention the wheelbarrow among our assets the
first time?"

Presumably these files contain data points at different times. Perhaps
you have 20 such times. Now we are getting somewhere!

What you have to do is build up a 2D array by selecting for longitude
and saving the temperatures at those longitudes.

ntimes = 20

; Read the first file, just to see how big array has to be.
... read the data file, extract variables, etc.
lonIndices = where(lons gt -25 and lons lt 40)

; Temperature at longitude and time
data = FltArr(N_Elements(lonIndices), ntimes)
temps = temps[lonIndices]
times = FltArr(ntimes)

; Read the files in a loop and extract info for Hovmoller plot.
for j=0,19 DO BEGIN
... Read file, extract variables, etc.
times = time[0]
data[*,j] = temps[lonIndices]
endfor

Now, make your plot...

cgContour, data, times, lons[lonIndices], ... ; Hovmoller plot

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: spam is destroying this group
Next Topic: New Google Group: idl-pvwave

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

Current Time: Wed Oct 08 11:44:18 PDT 2025

Total time taken to generate the page: 0.00458 seconds