<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">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">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>>> Thanks<br>><br>> --<br>> Margherita Di Leo<br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div></div>