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

Home » Public Forums » archive » Re: please help with ndvi calculation
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: please help with ndvi calculation [message #52834 is a reply to message #52832] Thu, 01 March 2007 21:23 Go to previous message
Pierre V. is currently offline  Pierre V.
Messages: 13
Registered: December 2006
Junior Member
Phil,

My guess is that the function write_tiff is internally converting your
NDVI to type byte before writing it to a file. You can either scale
your data to properly fit into bytes using something like:

ndvi_byte = bytscl(ndvi_image, min = -1, max = 1).

Or you can try using the /float keyword to write_tiff to force it to
write out your data as floats.

-Pierre
[Message index]
 
Read Message
Read Message
Previous Topic: please help with ndvi calculation
Next Topic: Re: How can I multi-plot in IDL with the coordinates set by myself?

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

Current Time: Wed Oct 08 19:27:22 PDT 2025

Total time taken to generate the page: 0.00563 seconds