[ncl-talk] SPI function

Guilherme Martins jgmsantos at gmail.com
Thu Aug 27 12:56:37 MDT 2015


Hi all,

I'm calculating the SPI (dim_spi_n) and I'm getting the error below when I
use the *spi_type* . I'm using the ncl 6.3.0.

part of my code:

*opt          = True*
opt at spi_type = 3       ; calculate using Pearson III distribution

do k=0,klen-1
   print( "len: " + len(k) )
   spi(:,k,:,:) = dim_spi_n(prc, len(k), opt, 0) ;=> (nlat,mlon,ntim)
   printMinMax(spi(:,k,:,:),0)
end do

*error message:*

 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID
 *** ERROR *** ROUTINE SAMLMR : PARAMETER NMOM INVALID

And when I set to False, the error disappears.

Any help is very appreciated.

Cheers,

*Guilherme Martins*
https://sites.google.com/site/jgmsantos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150827/1261ed87/attachment.html 


More information about the ncl-talk mailing list