<div dir="ltr">The documentation for dim_acumrun_n says that it returns a variable with the same type as the input. However, it seems to return a float, regardless of the input type.<div><br></div><div>Example<br><br>







<p class="p1"><span class="s1">ncl 0&gt; a = (/1,1,1,1,1,1,1/)</span></p>
<p class="p1"><span class="s1">ncl 1&gt; b = dim_acumrun_n(a,2,0,0)</span></p>
<p class="p1"><span class="s1">ncl 2&gt; printVarSummary(b)</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">Variable: b</span></p>
<p class="p1"><span class="s1">Type: float</span></p>
<p class="p1"><span class="s1">Total Size: 28 bytes</span></p>
<p class="p1"><span class="s1">            7 values</span></p>
<p class="p1"><span class="s1">Number of Dimensions: 1</span></p>
<p class="p1"><span class="s1">Dimensions and sizes:<span class="Apple-tab-span">        </span>[7]</span></p>
<p class="p1"><span class="s1">Coordinates: </span></p>
<p class="p1"><span class="s1">Number Of Attributes: 1</span></p>
<p class="p1"><span class="s1">  _FillValue :<span class="Apple-tab-span">        </span>9.96921e+36</span></p>
<p class="p1"><span class="s1">ncl 3&gt; printVarSummary(a) </span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">Variable: a</span></p>
<p class="p1"><span class="s1">Type: integer</span></p>
<p class="p1"><span class="s1">Total Size: 28 bytes</span></p>
<p class="p1"><span class="s1">            7 values</span></p>
<p class="p1"><span class="s1">Number of Dimensions: 1</span></p>
<p class="p1"><span class="s1">Dimensions and sizes:<span class="Apple-tab-span">        </span>[7]</span></p>
<p class="p1"><span class="s1">Coordinates: </span></p></div></div>