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

Home » Public Forums » archive » Re: IDL 8 image function
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: IDL 8 image function [message #74829 is a reply to message #74762] Thu, 03 February 2011 00:28 Go to previous messageGo to previous message
sh is currently offline  sh
Messages: 26
Registered: April 2010
Junior Member
On Feb 2, 8:20 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Feb 2, 3:35 pm, sh <sebastian.h...@gmail.com> wrote:
>
>> Ok this error message comes if RGB_TABLE is not specified within the
>> image()
>
>> Now the only problem left is to rescale the colorbar from 0 to 255 to
>> the dataspace
>
> I had a feeling I had done this before. As it turns out, I did:
>
> http://www.ppenteado.net/idl/pp_lib/doc/pp_colorbar_range.ht ml
>
> It was written back in the days of the iTools, but it seems to work
> the same with Graphics.

Thanks!! I have already a workaround for this ;)

I create a hidden image with the MY max and min values, and then use
the colorbar function on this hidden image "overlay".

ov_im=image([[minv,minv],[maxv,maxv]],/HIDE,/OVERPLOT)
c = COLORBAR(TARGET=ov_im)

It works fine with an RBGA image in the beginning, which I have scaled
myself with BYTSCL.
Unfortunately the colorbar uses always 256 colors/values, so when I
want to use only index from 0 to 100, the rest is black.
I'm playing around now with the 'IDLgrPalette', maybe I can convince
IDL to use only the number of colors specified there.
[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
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lists in strsplit
Next Topic: Error Bar Thoughts

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

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

Total time taken to generate the page: 0.00192 seconds