Re: Image structure [message #38814 is a reply to message #38813] |
Sat, 27 March 2004 08:21   |
julio
Messages: 31 Registered: December 2003
|
Member |
|
|
David Fanning <david@dfanning.com> wrote in message news:<MPG.1acec3001b9506e498971f@news.frii.com>...
> Julio writes:
>
>> Hi! I have a question, any comments will be welcome?
>>
>> I have to create an image with 1, 2, 3, 4 or 5 bands. When I have all
>> the 5 bands, I can write:
>>
>> Image=[(Band1),(Band2),(Band3),(Band4),(Band5)]
>>
>> However, in the case I don't have all the bands, like only 2, 3 and 5,
>> I should put:
>>
>> Image=[(Band2),(Band3),(Band5)]
>>
>> Then, I would have to write several combinations to make that
>> automatically. That's the problem! Isn't there anything easier? How
>> can I modify the initial script in the case I don't have all the
>> bands??
>
> I think you are looking for a CASE statement. :-)
>
> Cheers,
>
> David
Hi Dr Fanning, thanks for answering...
Let me explain what I'm thinking. Please tell me if it is possible.
The image is constructed through:
Image = [(Band1), (Band2), (Band3), (Band4), (Band5)]
However, sometimes I don't have all the bands. Supposing I have only
Bands 1 and 3, what value I must put in place of Band2, Band4 and
Band5, once I won't use them? The idea is to take these bands out from
the equation.
I tried to put 0 in these places, but it doesn't work, once Bands 1
and 3 are two-dimensional matrices and 0 is not.
Case statement may help, but I have too combinations. Could you please
explain what you mean?
Thanks in advance!
Regards,
Julio
|
|
|