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

Home » Public Forums » archive » Re: Envi band math help!
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: Envi band math help! [message #35720] Sat, 12 July 2003 18:03 Go to previous message
tianyf_cn is currently offline  tianyf_cn
Messages: 19
Registered: November 2002
Junior Member
If your array is not very large, I sugguest that you use IDL procedure
to print the single pilex value of b1. It a good choice to perform
math operations on each pixel of b1 by ENVI Band Math Tool.

I tested the second example, and found that ENVI first do some tests
on the specified expression. It generates a random 5*5 array to test
the math expression and then use ENVI TILE to cycle the calculation.
When you type the expression in band math tool:
example(b1)
and click the OK button, it first executes the example.pro by using
the random array(5*5).

You can set a breakpoint in you math funcion to see how it works.

Tian.

gauravjn123@yahoo.co.in (Gaurav) wrote in message news:<d193b5fb.0307110209.5ab0ce0c@posting.google.com>...
> Hi!
> I have this strange problem...i have written one band math function
> to print the band value at the location 30,30 but it doesnt work. And
> the same function if written for location 4,4 ...works fine! Here are
> the functions:
>
> 1.function example,b1
> help,b1
> print,b1(30,30)
> end
> 2.function example,b1
> help,b1
> print,b1(4,4)
> end
> And strangely enuf...in the second example, the value b1(4,4)
> is printed 4 times & the value printed final time is the right
> value. The help command outputs that the array is of size[5,5] in the
> initial 3 times. Only after that in the final turn does it output the
> right dimesnions that is 608*673
>
> Could anyone please enlighten me....it has been bugging me for many
> days!
> Thnx in advance
>
> Gaurav
[Message index]
 
Read Message
Read Message
Previous Topic: Extension to "Overplotting Data on !P.MULTI Plots"
Next Topic: Envi band math help!

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

Current Time: Sat Oct 11 01:13:20 PDT 2025

Total time taken to generate the page: 0.71731 seconds