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

Home » Public Forums » archive » Re: Creating colour-coded plots of spectra
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: Creating colour-coded plots of spectra [message #67534 is a reply to message #67532] Mon, 03 August 2009 05:24 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jimmy writes:

> However (and this is my fault for not being clear) I'm not really at
> that stage yet- I'm still trying to convert a line spectral plot into
> a colour coded image, prior to plotting it. I basically have an array
> with a range of values in representing an 8 second piece of data, then
> a load of zeros, then another load of data, then zeros, etc... for an
> hour or so. When plotting this prints out as many, many spectra all in
> a line, and I'm trying to get idl to display them vertically and in
> color (as in the Ulysses plots).
>
> It may be that I need to write something to do this (I'm thinking
> something that bins the data accoring to its value, then assigns it a
> color based on intensity...) but as I've seen these plots around and
> the seem fairly standard I was hoping someone might know of function
> or program to do it for me- with my IDL skills it's likely to take a
> fair bit of time/cursing!

It sounds to me like you need to use REFORM to
turn your 1D array into a 2D array, and then use
BYTSCL to convert your data into something you
can display with TV. I think the "program" you
are looking for is at most 3 or 4 lines long. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Question about the installation of IDL AACGM DLM
Next Topic: DIALOG_PICKFILE() changes locale settings

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

Current Time: Fri Oct 10 15:47:18 PDT 2025

Total time taken to generate the page: 0.56342 seconds