class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># --&gt; Loop on the list of spatial files and run MODIStsp using each of them to </span></span>
<span><span class="co"># automatically define the output extent (A separate output folder is created for</span></span>
<span><span class="co"># each input spatial file).</span></span>
<span></span>
<span><span class="kw">for</span> <span class="op">(</span><span class="va">single_shape</span> <span class="kw">in</span> <span class="v