<div dir="auto"><div>Hi Madi<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 21 feb. 2019 13:20, Margherita Di Leo <<a href="mailto:diregola@gmail.com">diregola@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm trying to use i.sentinel.mask on a Sentinel2 
L2A. 

</div><div dir="ltr"><br></div><div dir="ltr">i.sentinel.mask -r input_file=input_cloud_mask.txt cloud_mask=cloud shadow_mask=shadow cloud_threshold=25000 shadow_threshold=5000 mtd_file=MTD_TL.xml<br><br>The 
input_cloud_mask.txt

 file:<br><br>blue=L2A_T34UGD_20161206T094402_B02_10m<br>green=L2A_T34UGD_20161206T094402_B03_10m<br>red=L2A_T34UGD_20161206T094402_B04_10m<br>swir11=L2A_T34UGD_20161206T094402_B11_20m<br>nir=L2A_T34UGD_20161206T094402_B08_10m<br>swir12=L2A_T34UGD_20161206T094402_B12_20m<br>nir8a=L2A_T34UGD_20161206T094402_B8A_20m<br clear="all"></div><div dir="ltr"><br></div><div>I get the following error:</div><div><br></div><div>WARNING: Any rescale factor has been applied<br>ERROR: Raster maps must be DCELL o FCELL<br></div><div><br></div><div>I didn't use i.sentinel.preproc because our colleagues already preprocess L1C images and provide L2A, but AFAIU here I should start from a L1C image, and preprocess it with i.sentinel.preproc otherwise I can't apply i.sentinel.mask, is this correct? <br></div><div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I haven't tried myself, but the error only says you need to provide double or float map. How do L2 products come, maybe you just need to rescale if they come as integer and that's it. Have you tried?</div><div dir="auto"><br></div><div dir="auto">Just guessing</div><div dir="auto"><br></div><div dir="auto">Vero</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div>