<div dir="ltr">Hi all,<div><br></div><div>I'm calculating the SPI (dim_spi_n) and I'm getting the error below when I use the <b>spi_type</b> . I'm using the ncl 6.3.0.</div><div><br></div><div>part of my code:</div><div><br></div><div><div><b>opt = True</b></div><div>opt@spi_type = 3 ; calculate using Pearson III distribution</div><div><br></div><div>do k=0,klen-1</div><div> print( "len: " + len(k) )</div><div> spi(:,k,:,:) = dim_spi_n(prc, len(k), opt, 0) ;=> (nlat,mlon,ntim)</div><div> printMinMax(spi(:,k,:,:),0)</div><div>end do</div></div><div><br></div><div><b>error message:</b></div><div><br></div><div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div><div> *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID</div></div><div><br></div><div>And when I set to False, the error disappears.</div><div><br></div><div>Any help is very appreciated.</div><div><br></div><div>Cheers,</div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b><font size="2">Guilherme Martins</font></b></div><div><font size="2"><a href="https://sites.google.com/site/jgmsantos/" target="_blank">https://sites.google.com/site/jgmsantos</a><br></font><div><div><div></div></div></div></div><div><br></div></div></div></div></div></div></div></div>
</div></div>