<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 6, 2019 at 6:28 PM Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Madi,<br><div><br>On Thu, Jun 6, 2019 at 4:13 PM Margherita Di Leo <<a href="mailto:diregola@gmail.com" target="_blank">diregola@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> reading the training material here: <a href="http://training.gismentors.eu/grass-gis-irsae-winter-course-2018/units/23.html" target="_blank">http://training.gismentors.eu/grass-gis-irsae-winter-course-2018/units/23.html</a><br>> I have a doubt. When cloud mask is applied to calculate NDVI<br>><br>> t.rast.mapcalc input=b4,b8,cloud output=ndvi_cloud \<br>> expression="if(isnull(cloud), null(), float(b8 - b4) / ( b8 + b4 ))" \<br>> basename=ndvi_cloud nproc=3<br>><br>> 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:<br>><br>> if(isnull(cloud), null()<br>><br>> 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.<br><div><br></div><div>the cloud masks are apparently created with "sentinel-cloud-mask.py" which requires an AOI vector as input, and a cloud mask is always generated: if there are no clouds or no cloud mask, only the AOI is used as mask.</div><div><br></div><div>from a quick glance at "sentinel-cloud-mask.py"</div><div><br></div><div>Markus M</div><div><br></div></div></div></blockquote><div>Thank you Markus!  <br></div></div><br>-- <br><div dir="ltr" class="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>