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 #94943 is a reply to message #89123] Wed, 27 December 2017 12:30 Go to previous messageGo to previous message
laura.hike is currently offline  laura.hike
Messages: 87
Registered: September 2013
Member
No disrespect intended, but what if we want to make said plot without using Coyote graphics?


On Friday, July 25, 2014 at 1:49:02 PM UTC-7, David Fanning wrote:
> 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 15:47:53 PDT 2025

Total time taken to generate the page: 0.30050 seconds