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

Home » Public Forums » archive » Contour plots / ps files
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: contour plots [message #40378 is a reply to message #22062] Sun, 08 August 2004 01:03 Go to previous messageGo to previous message
hans.clarke is currently offline  hans.clarke
Messages: 6
Registered: August 2004
Junior Member
David Fanning <davidf@dfanning.com> wrote in message news:<MPG.1b7cb14493f27fce989813@news.frii.com>...
> Hans Clarke writes:
>
>> Here is some data, which I have stored in Excel:
>>
>> f Period Gamma
>> 6.8 15.7 0.01
>> 7 9.9 0.04
>> 7.5 6.1 0.17
>> 8 4.8 0.34
>> 8.5 4 0.56
>> 9 3.5 0.81
>> 9.5 3.1 1.12
>> 10 2.9 1.49
>> 10.5 2.6 1.94
>> 11 2.4 2.52
>> 11.5 2.3 3.29
>> 12 2.1 4.39
>> 12.5 2 6.26
>> 13 1.9 11.05
>> 13.3 1.9 37.16
>>
>> I want to plot, for different f surfaces, Period and Gamma. There is
>> probably four times as much data (60 data sets).
>
> Well, assuming you have saved this in a comma
> delimited text file, with the first line a header
> line, and that you plan to contour the gamma
> value and use f as the Y value and period as
> the X value, I would do something like this:
>
> OpenR, lun, 'yourfile.dat', /Get_Lun
> rows = File_Lines('yourfile.dat)
> header = ''
> data = FltArr(3,rows-1)
> ReadF, lun, header, data
> Free_Lun, lun
> f = Reform(data[0,*])
> period = Reform(data[1,*])
> gamma = Reform(data[2,*])
> Contour, gamma, period, f, /Irregular, NLevels=10
>
> That should get you started, I guess. :-)
>
> Cheers,
>
> David

That's great, thanks David

Hans
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Running an IDL Project
Next Topic: contour plots

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

Current Time: Sun Oct 12 12:12:38 PDT 2025

Total time taken to generate the page: 2.23975 seconds