<div dir="ltr">Hi,<div>Thanks but I'm looking for better syntax, ideally more readable/user friendly. I guess maybe it doesn't exist then?</div><div><br></div><div>I can see your method will work but it seems QGIS forces it to be quite... ugly in its nature.</div>

<div><br></div><div>Does anyone know what scope there is for improving the syntax of raster calculator?</div><div><br></div><div>Cheers,</div><div>Jonathan</div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 25 February 2014 18:59, Goyo <span dir="ltr"><<a href="mailto:goyodiaz@gmail.com" target="_blank">goyodiaz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

2014-02-25 18:00 GMT+01:00 Jonathan Moules <<a href="mailto:jonathanmoules@warwickshire.gov.uk">jonathanmoules@warwickshire.gov.uk</a>>:<br>
<div><div class="h5">> Hi List,<br>
> How do I do a If/Else with the raster calculator *and* have the ability to<br>
> set arbitrary values for both conditions.<br>
><br>
> For example, similar to the below psuedocode:<br>
><br>
>> If(condition):<br>
>>   Cell = 9<br>
>> else:<br>
>>   Cell = 68<br>
><br>
><br>
> This seems like it'd be a core part of a raster calculator but all I can<br>
> find is the ability to get True/False and then cludge around that, i.e.<br>
> with:<br>
>><br>
>> (condition) * 9<br>
><br>
><br>
> What am I missing? Good tutorials welcome (the ones I've found don't show<br>
> anything beyond true/false).<br>
<br>
</div></div>(condition) * 9 + (not condition) * 68<br>
<br>
Or you are just looking for a better sintax? That is too much verbose<br>
but I do not know a better way.<br>
<span class="HOEnZb"><font color="#888888"><br>
Goyo<br>
</font></span></blockquote></div><br></div></div></div>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>