<div dir="ltr"><div>Hi,</div><div><br></div><div>reading the training material here: <a href="http://training.gismentors.eu/grass-gis-irsae-winter-course-2018/units/23.html">http://training.gismentors.eu/grass-gis-irsae-winter-course-2018/units/23.html</a> <br></div><div>I have a doubt. When cloud mask is applied to calculate NDVI</div><div>
<div>
<pre>t.rast.mapcalc <span class="gmail-m_-4675781563050490139gmail-nv">input</span><span class="gmail-m_-4675781563050490139gmail-o">=</span>b4,b8,cloud <span class="gmail-m_-4675781563050490139gmail-nv">output</span><span class="gmail-m_-4675781563050490139gmail-o">=</span>ndvi_cloud <span class="gmail-m_-4675781563050490139gmail-se">\</span>
<span class="gmail-m_-4675781563050490139gmail-nv">expression</span><span class="gmail-m_-4675781563050490139gmail-o">=</span><span class="gmail-m_-4675781563050490139gmail-s2">"if(isnull(cloud), null(), float(b8 - b4) / ( b8 + b4 ))"</span> <span class="gmail-m_-4675781563050490139gmail-se">\</span>
<span class="gmail-m_-4675781563050490139gmail-nv">basename</span><span class="gmail-m_-4675781563050490139gmail-o">=</span>ndvi_cloud <span class="gmail-m_-4675781563050490139gmail-nv">nproc</span><span class="gmail-m_-4675781563050490139gmail-o">=</span><span class="gmail-m_-4675781563050490139gmail-m">3</span></pre>

</div><div>what happens if there is no cloud mask at all for a certain 
map? In this case NDVI should be taken as is. Instead, to my understanding, what happens:
<pre><span class="gmail-m_-4675781563050490139gmail-s2">if(isnull(cloud), null()</span></pre>

</div><div>If cloud map is not found (meaning there is no cloud detected), isnull(cloud)=True, so the NDVI resulting map is null too. Please correct me if I'm wrong.</div><div><br></div><div>Thanks<br></div>

</div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div></div></div>