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

Home » Public Forums » archive » Re: Rescaling byte (0-200) ndvi to -1 to 1 values
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: Rescaling byte (0-200) ndvi to -1 to 1 values [message #84534 is a reply to message #80861] Mon, 20 May 2013 05:39 Go to previous message
k.shemsu is currently offline  k.shemsu
Messages: 1
Registered: May 2013
Junior Member
On Thursday, July 19, 2012 11:13:32 PM UTC+3, Paul van Delst wrote:
> Hello,
>
>
>
> On 07/19/12 15:19, Narnia wrote:
>
>> Thanks a lot, Paul, that makes sense of course but (I'm a real beginner with IDL), I'm still not sure how I would
>
>> implement that as far as calling in the images and declaring that to run and scale all the images in my folder! :(
>
>
>
> Well, let's assume you already have a function that reads the image data (I can't help with that one). Let's call it
>
> "read_image" and assume it looks something like:
>
>
>
> FUNCTION Read_Image, Filename
>
> ...open file...
>
> ...read image data...
>
> RETURN, image_data
>
> END
>
>
>
> Your scaling function could look like
>
>
>
> FUNCTION Scale_Image, Input_Image
>
> output_image = FLOAT(Input_Image)
>
> output_image = (output_image - 100.0) / 100.0
>
> RETURN, output_image
>
> END
>
>
>
> Then you can loop over your filenames on the command line
>
>
>
> IDL> files = FILE_SEARCH("path/to/data/emodis.filename.*")
>
> IDL> FOR n = 0, N_ELEMENTS(files) DO BEGIN & scaled_image = Scale_Image(Read_Image(files[n])) & ...display... & ENDFOR
>
>
>
> ?
>
>
>
> cheers,
>
>
>
> paulv

Hi Paul,

I have seen your suggestion, but I don't work in IDL. Can you tell me this process in ArcGIS? Thank you in advance for your kind support. KS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Speeding up xy distance calculations using complex numbers
Next Topic: Re: IDL8 plot

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

Current Time: Sat Oct 11 13:12:47 PDT 2025

Total time taken to generate the page: 0.88202 seconds