<div dir="ltr"><div><div>Dear GRASS users (and developers?!),<br><br></div>I'm facing a problem with an expression in the t.rast.mapcalc module... <br></div><div><br><div style="margin-left:40px">t.rast.mapcalc inputs=QA_mask,ndvi,ndvi_smooth_spacetime expression="if(QA_mask==0,ndvi,ndvi_smooth_spacetime)" output=ndvi_fixed basename=ndvi_fixed<br></div></div><div><div style="display:inline-block" id="gt-input-tool"><div id="itamenu"><span class=""></span></div></div><div id="gt-src-c" class=""><div id="gt-src-p"> </div> </div> <div id="gt-res-content" class=""><div dir="ltr" style="zoom:1"><span id="result_box" class="" lang="en"><span class="">It throws</span> <span class="">the following error:</span></span></div></div></div><div><div style="margin-left:40px"><span style="color:rgb(255,0,0)">Starting temporal sampling...<br>Starting mapcalc computation...<br>Invalid map <MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326_smooth_spacetime_0><br>Parse error<br>ERROR: parse error<br>ERROR: Error while mapcalc computation</span><br></div><br>The QA_mask maps are:<br>QA_mask_01|PERMANENT|2009-01-01 00:00:00|2009-01-17 00:00:00<br>QA_mask_02|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00<br>......<br><br></div><div>The ndvi_smooth_spacetime maps are:<br>ndvi_smooth_spacetime_0|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00<br>ndvi_smooth_spacetime_1|PERMANENT|2009-02-02 00:00:00|2009-02-18 00:00:00<br>...........<br><br></div><div>The ndvi maps are<br>MOD13Q1.A2009001.h12v12.005.2009019145228_01_4326|PERMANENT|2009-01-01 00:00:00|2009-01-17 00:00:00<br>MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326|PERMANENT|2009-01-17 00:00:00|2009-02-02 00:00:00<br>M<br><br></div><div>As you see, there is no such a map like.. <span style="color:rgb(255,0,0)">MOD13Q1.A2009017.h12v12.005.2009035110230_01_4326_smooth_spacetime_0<br><br></span></div><div><span style="color:rgb(255,0,0)"><font color="#000000">I guess the module is mixing ndvi (a temporal dataset) with _smooth_spacetime... the second part of the name....<br><br></font></span></div><div><span style="color:rgb(255,0,0)"><font color="#000000">I know it work ok by renaming the ndvi_</font></span><span style="color:rgb(255,0,0)"><font color="#000000">smooth_spacetime by something else... but... is this a bug or shoul I use more '`" to protect names !?<br><br></font></span></div><div><span style="color:rgb(255,0,0)"><font color="#000000">Thanks!<br></font></span></div><div>-- <br><div class="gmail_signature"><div>Dr. Leonardo A. Hardtke   <br>Laboratorio de Teledetección y S.I.G.  <br>Centro Nacional Patagónico (CONICET) <br>Bvd. Brown 2825, 9120 <br>Puerto Madryn, Chubut, Argentina </div></div>
</div></div>