modeler conditional function
By Bogdan in ERDAS Software Forum
Hello again,
I want to fill some Landsat 7 slc off images. To do that, I have one "master" image and several other images that I want to use to fill the gaps with.
So, for example, saying that my master image is "A" and the others are "B", "C", "D"...and so on...can I have a nested conditional statement like:
If A==0, then use B ,but if B==0 then use C, but if C==0 then use D...and so on?
Thanks a lot
----------------------------------
You were sent this email because you opted to receive email notifications when someone created a new thread, or replied to a topic within this forum, ERDAS Software Forum.
To unsubscribe:
Re: modeler conditional function
By Larry Brantley in ERDAS Software Forum
Yes, the CONDITIONAL function does what you need:
CONDITIONAL { (A) A , (B) B , (C) C, (D) D }
returns A if A is nonzero, B if A is zero but B is nonzero, C if both A & B are 0 but C is nonzero, and so on.
This will return zero if A, B, C & D are all zero. If you want to define a default value in case all the inputs are zero, for example 12, use
CONDITIONAL { (A) A , (B) B , (C) C, (D) D, (DEFAULT) 12}
----------------------------------
You were sent this email because you opted to receive email notifications when someone responded to this thread.
To unsubscribe: