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

Home » Public Forums » archive » Re: plotting program problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: plotting program problems [message #27428] Tue, 23 October 2001 16:53
air_jlin is currently offline  air_jlin
Messages: 22
Registered: July 2001
Junior Member
hi Clive,

don't worry, there's no such thing as a dumb question :) if there were,
then i think i have you beat in that category :)

could you give us some more info. re your problem? based on just what
you wrote, my guess would be maybe your i/o structure could be improved.

thanks!

best,
-Johnny


-------------------------------------------
Johnny Lin
CIRES, University of Colorado
Work Phone: (303) 735-1636
Web: http://cires.colorado.edu/~johnny/
-------------------------------------------


Clive Cook <ccc97@aber.ac.uk> wrote in message news:<3BD55918.FD3C7EAB@aber.ac.uk>...
> I'm relatively new at idl (and programming in general) so please excuse
> any what may seem to you guys dumb questions. The problem is that i need
> a program to produce plots of data with three variables. They are time,
> height and intensity. At the moment i use a program that i think
> basically uses contour and then produces a color plot with a color bar.
> The thing is that it takes along time to process the data with this
> program and its not as flexible as i would like.
>
> An average data set may contain 5000 individual files, with each file
> containing 452 height bins each with a recording of the intensity.
>
> One thing that i would like to be able to do that seems to be resticted
> due to the way the program works is actually specify certain colors for
> certain values, as well as using the specified color table for the more
> general data.
>
> I hope someone can help me with this, if not thank you for taking the
> time to read my post
>
> Clive Cook
> --
> Clive Cook
> Cloud Research
> Department of Physics
> University of Wales, Aberystwyth
> Ceredigion
> SY23 2JS
>
> Office Tel: 01970 622847
>
>
> email: ccc97@aber.ac.uk
> web page http://users.aber.ac.uk/ccc97
Re: plotting program problems [message #27449 is a reply to message #27428] Tue, 23 October 2001 10:39 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Clive Cook wrote:

> I'm relatively new at idl (and programming in general) so please excuse
> any what may seem to you guys dumb questions.

No such things.

> The problem is that i need
> a program to produce plots of data with three variables. They are time,
> height and intensity. At the moment i use a program that i think
> basically uses contour and then produces a color plot with a color bar.
> The thing is that it takes along time to process the data with this
> program and its not as flexible as i would like.
>
> An average data set may contain 5000 individual files, with each file
> containing 452 height bins each with a recording of the intensity.
>

Contour is a good choice for peeking at XYZ data. It's not easy to discern
exactly what your are trying to do, so it's a bit hard to help here. An
alternative is to make a plot of symbols sized according to your Z value.
You have a lot of points, so maybe this will look a bit noisy on the
display.

;set up the plot coordinates without actually plotting the data
Plot, X, Y, /NoData, otherkeywords = blahblah
; get the range of your values in Z
zMax = Max(Z, min = zMin)
;scale the data from 0-1
Scale = (Z - zMin)/(zMax-zMin)
;add one, so the symbol size ranges from 1.0 - 2.0
;loop through each point (maybe be slow)
For i = 0, n_elements(Z)-1 DO PlotS, X, Y, pSym = 1, SymSize = Scale[i]+1,
....


>
> One thing that i would like to be able to do that seems to be resticted
> due to the way the program works is actually specify certain colors for
> certain values, as well as using the specified color table for the more
> general data.
>

You can key your data to certain colors in much the same manner as above by
specifying the COLOR keyword to PlotS. You don't have to run a loop to
access an array of colors passed to the COLOR keyword. The trick is to key
your data to the color table. One way is to use the SCALE value above

;load a color table
LoadCT, 4
PlotS, X, Y, psym = 1, color = SCALE*255

To get more control than that you may need to manufacture a look up table of
some sort look up table (which doesn't have to be all that fancy pants.)
Many IDL users maintain good web pages with free advice, tips, and code. A
good starting point is David Fanning's excellent website. He has a
wonderful links page to other sites.

Ben

--
Ben Tupper
180 Mckown Point Road
West Boothbay Harbor, ME 04575

email: btupper@bigelow.org
telephone: (207) 633-9600
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Create a simple algorithm in IDL
Next Topic: Passing Image Data :)

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

Current Time: Wed Oct 08 15:52:37 PDT 2025

Total time taken to generate the page: 0.00543 seconds