Perfect, thank you very much. That has worked (once $ was also included for 
the variables).

On Tuesday, December 19, 2017 at 8:30:47 AM UTC, corsima wrote:
>
> If you are using bash, you have to use double quotes " " instead of ' '.
>
>
> corsima
>
>
>
>
> On Monday, December 18, 2017 at 4:48:48 PM UTC+1, [email protected] wrote:
>>
>> I have variables taken from a text file as such:
>>
>> ml1=1
>> ml2=2
>> ml3=3
>>
>> ad1=1
>> ad2=2
>> ad3=3
>>
>> I want to use these variables in otbcli_BandMath like so:
>>
>> otbcli_BandMath -il ${MY_INPUT}_B2.TIF -out B2TOA.TIF -exp 
>> '(ml2*im1b1)+ad2'
>>
>> But it keeps showing that ml2 and ad2 are not recognised. This is because 
>> they are defined in the bash shell script and i've read that once in the 
>> expression quotes otb uses muparserX and so the variables must be defined 
>> in muparserX in order to be used. My problem is that i do not know how to 
>> use muparserX as i'm very new to programming. Does anyone know how i can 
>> use my predefined variables in the expression quotes?
>>
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to