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

Home » Public Forums » archive » Poltting with TVSCL
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: Poltting with TVSCL [message #93454 is a reply to message #93453] Wed, 20 July 2016 01:52 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, July 20, 2016 at 8:38:54 AM UTC+2, dave poreh wrote:
> Folks,
> Hi,
> I am plotting some gray images. I need to use TVSCL, but i need to impose to plot between two limits that i want to be. I mean my images are between 0 and 1, but the max and min of them are different. I need to plot them *all* in [min, max] that I am going to give them. So I can tell that my images have got same min and max...
> Thanks for any kind of help in advance,
> All the best,
> Cheers,
> Dave

Hi,
I think you need to use the tv procedure and pass your image with the bytscl function:

tv, bytscl(img, min=min, max=max)

or if you prefer:

tvscl, bytscl(img, min=min, max=max)

The result, using tvscl or tv, will be the same.

For bytscl, see: http://www.harrisgeospatial.com/docs/BYTSCL.html

Cheers,
Helder

PS: there are loads of better image display procedures. Just to mention two: cgImage and image(). Both give you the possibility to do the above.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: how to replace fits variable and store back into same fits file??
Next Topic: Read an ASCII file in a table based on delimeter line string

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

Current Time: Wed Oct 08 16:12:08 PDT 2025

Total time taken to generate the page: 0.00186 seconds