[ERDAS-L:6308] modeler conditional function

352 views
Skip to first unread message

ERDAS Communities - Automated Email

unread,
Apr 21, 2010, 6:48:31 PM4/21/10
to erdas-communitie...@googlegroups.com

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:

  1. To unsubscribe from this item only, visit the item link and turn off notifications.
  2. To stop all notifications of any updated items from ERDAS Communities, go to Edit Profile, click on the Site Options tab, then under Email Configuration, set Send Notifications to "No".

--
You received this message because you are subscribed to the Google Groups "ERDAS Communities Archive (formerly ERDAS-L Archive)" group.
To post to this group, send email to erdas-co...@googlegroups.com.
To unsubscribe from this group, send email to erdas-communit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/erdas-communities?hl=en.

ERDAS Communities - Automated Email

unread,
Apr 22, 2010, 9:54:15 AM4/22/10
to erdas-communitie...@googlegroups.com

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:

  1. To unsubscribe from this item only, visit the item link and turn off notifications.
  2. To stop all notifications of any updated items from ERDAS Communities, go to Edit Profile, click on the Site Options tab, then under Email Configuration, set Send Notifications to "No".

Reply all
Reply to author
Forward
0 new messages