<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/modistsp-1-3-3-is-out-speeding-things-up-and-squashing-some-bugs/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://lbusettspatialr.blogspot.com/2017/08/modistsp-133-is-out-speeding-things-up.html"> Spatial Processing in R</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>  A new version of <a rel="nofollow" href="http://lbusett.github.io/MODIStsp/" target="_blank">MODIStsp</a> (1.3.3) is on <a rel="nofollow" href="https://cran.r-project.org/web/packages/MODIStsp/index.html" target="_blank">CRAN</a> as of today ! Below, you can find a short description of the main improvements.</p>
<h2><b><span>Processing speed improvements</span></b></h2>
<p>  Processing of MODIS layers after download (i.e., scale and offset calibration, computation of Spectral Indexes and Quality Indicators) <b>is now much faster</b>.</p>
<p><a rel="nofollow" href="https://i1.wp.com/1.bp.blogspot.com/-bN3wgVSMrtk/WY3CXudkffI/AAAAAAAACKo/kOBesqHQ1Tkf0IgQWw_kaNdWyf_XkmFZQCLcBGAs/s1600/Rplot13.png?ssl=1" target="_blank"><img border="0" data-original-height="330" src="https://i0.wp.com/1.bp.blogspot.com/-bN3wgVSMrtk/WY3CXudkffI/AAAAAAAACKo/kOBesqHQ1Tkf0IgQWw_kaNdWyf_XkmFZQCLcBGAs/s400/Rplot13.png?resize=450%2C330&ssl=1" data-recalc-dims="1" data-original-width="450"></a><br>  As you can see in the figure, <b>processing time was almost halved </b>on my (not so fast) laptop. This was achieved by <b>modifying all computation functions so to use `<span>raster::calc()</span>` and `<span>raster::overlay()</span>`</b> (more on this in a later post).</p>
<p>Although speed is also limited by download speed and compression options, this will allow to <b>save quite some time when working on large areas and with many MODIS layers</b>.</p>
<p><a name="more"></a><br>
<h2></h2>
<h2><span><br></span></h2>
<h2><span>Test mode</span></h2>
<p><span>  MODIStsp 1.3.3</span> also introduces a <b>test mode</b>. Although it was mainly developed to facilitate <a rel="nofollow" href="https://en.wikipedia.org/wiki/Unit_testing" target="_blank">unit testing</a>, it is also available to the user. Running:</p>
<pre><code><span>MODIStsp</span><span>(</span><span>test</span> <span>=</span> <span>X</span><span>)</span>  <span># with X equal to a number between 0 and 6</span></code></pre>
<p>  will run <span>MODIStsp</span> expoiting different sets of processing parameters (available as JSON files in the \Test_files subfolder of <span>MODIStsp</span> installation). We hope this will help us in more easily pinpoint and solve eventual problems signalled by users.</p>
<h2><span>Bug fixes</span></h2>
<p>  Several bugs discovered after v1.3.2 release were fixed. We thank MODIStsp users <a rel="nofollow" href="https://github.com/lbusett/MODIStsp/issues?q=is%3Aissue+is%3Aclosed" target="_blank">for their feedback</a> and help in improving the package ! You can find a list of the main fixes in our <a rel="nofollow" href="http://lbusett.github.io/MODIStsp/news/index.html" target="_blank">NEWS</a> page.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://lbusettspatialr.blogspot.com/2017/08/modistsp-133-is-out-speeding-things-up.html"> Spatial Processing in R</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/FWsYc0gSK_4" height="1"></a></div>