A journey of thousand miles starts with one step.Good judgement comes from experience and experience
comes from bad judgement.."pacat" --- You are currently subscribed to erdas-l as: erdas-l-gar...@googlegroups.com. To unsubscribe send a blank email to leave-31650867-120484586.1d5...@lyris.dundee.net
Lilik
Bogor Agric. Univ.
> To unsubscribe send a blank email to
> leave-31652373-40133625.ba18...@lyris.dundee.net
___________________________________________________________
indomail - Your everyday mail - http://indomail.indo.net.id
---
You are currently subscribed to erdas-l as: erdas-l-gar...@googlegroups.com.
To unsubscribe send a blank email to leave-31653966-120484586.1d5...@lyris.dundee.net
Fairuz,
Make a simple model maker. Two inputs, one function and one output. Connect the inputs to function, and the function to output. Set the inputs with your raster files A and B. Set the output with a new file name (C).
In the function write one of these sentences. Choose one of them according to your preference/objectives.
EITHER $fileB IF ($fileA <= 0) OR $fileaA This condition copy A to C(new file) but replaces with B when A is less or equal to zero
EITHER $fileB+$fileA IF ($fileA <= 0) OR $fileaA This condition copy A to C(new file) but replaces with A+B when A is less or equal to zero
Regards,
Adrian E. Benítez, Ing. Agr.
Responsable Geographic Imaging, Aeroterra S.A.
You are currently subscribed to erdas-l as: aben...@aeroterra.com.
To unsubscribe send a blank email to leave-31650867-87054609.6468...@lyris.dundee.net
--- You are currently subscribed to erdas-l as: erdas-l-gar...@googlegroups.com.. To unsubscribe send a blank email to leave-31654356-120484586.1d5...@lyris.dundee.net
If I understand the problem correctly I think that this Modeler
statement will do what you are asking
Input files: $n1_A, $n2_B
Output file: $n3_C
Function statement:
Either $n1_A + $n2_B if ($n1_A == $n2_B) or $n1_A otherwise
This statement will add A+B to every location where A=B. If you want
to restrict the summation to a specific values, 16 and 49 for example,
then I would suggest the following CONDITIONAL statement be used:
Conditional {
($n1_A == 16) $n1_A + $n2_B,
($n1_A == 49) $n1_A + $n2_B,
(default) $n1_A}
This statement will scan through file A and will repeat the values for
A unless the value is equal to 16 or 49. In that case it will add A+B.
Hello,
%2=%3
endif
________________________________
James,
Wan
leave-31654356-58163005.68a6...@lyris.dundee.net
---
You are currently subscribed to erdas-l as: erdas-l-gar...@googlegroups.com.
To unsubscribe send a blank email to leave-31655241-120484586.1d5...@lyris.dundee.net
A journey of thousand miles starts with one step.Good judgement comes from experience and experience comes from bad judgement.."pacat" --- You are currently subscribed to erdas-l as: erdas-l-gar...@googlegroups.com.. To unsubscribe send a blank email to leave-31656210-120484586.1d5...@lyris.dundee.net
Fairuz,
In some cases, I prefer to use a general math expression instead of conditional statement syntaxes. You can prove this way.
For example, you can replace the following ERDAS conditional statement
EITHER $fileB IF ($fileA <= 0) OR $fileaA OTHERWISE (This condition copy A to C(new file) but replaces with B when A is less or equal to zero)
By this algebraic expression :
$fileB*($fileA <= 0) + $fileaA *($fileA > 0)
If (relation) is true, the system returns the value 1 (one) . If it is false, a 0 (zero) will be returned.
Thus, you can use the neutrality of some math operators and relational operators, instead of specific conditional commands
In some systems, value -1 is the result from true conditions.
Adrian E. Benítez
Aeroterra S.A.
Buenos Aires. Argentina
You are currently subscribed to erdas-l as: aben...@aeroterra.com..
To unsubscribe send a blank email to leave-31656210-87054609.6468...@lyris.dundee.net
--- You are currently subscribed to erdas-l as: erdas-l-gar...@googlegroups.com
.. To unsubscribe send a blank email to leave-31656749-120484586.1d5...@lyris.dundee.net