<div dir="ltr">Hi all,<div><br></div><div>I&#39;m calculating the SPI index, but when I try save the file to netcdf format I&#39;m getting some errors like this:</div><div><br></div><div><div>fatal:NetCDF: NC_UNLIMITED in the wrong index</div><div>fatal:[&quot;NclFile.c&quot;:432]:FileAddVar: an error occurred while adding a variable to a file, check to make sure data type is supported by the output format</div><div>fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 84 in file 01spi.ncl</div></div><div><br></div><div>Other question,</div><div><br></div><div>How can I change inside the loop (line 73) the variable m1, for example, in this case I&#39;m using only one variable (m1) for specific model but I want to use other models. I don&#39;t know if I objective in my doubt.</div><div><br></div><div>In attchament is my script.</div><div><br></div><div>Best regards and any help is very appreciated</div><div><br></div><div>Guilherme Martins.</div></div><div dir="ltr">-- <br></div><div dir="ltr"><div><font size="2"><div>------------------------------------------------------------------------------------------</div><div>Guilherme Martins</div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div></font></div><div><font size="2">Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES<br></font><span>Grupo de Superfície-Biosfera-Atmosfera (GSBA)</span><font size="2"><br></font></div><div><font size="2">Telefone (INPE/CP): +55 12 3186-9520  ||  Celular (TIM): +55 12 98152-8580<br>E-mail: <a href="mailto:guilherme.martins@inpe.br">guilherme.martins@inpe.br</a>  ||  <a href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a></font><div><font size="2">Skype: guilherme.martins.<br>Homepage: </font><a href="https://sites.google.com/site/jgmsantos/">https://sites.google.com/site/jgmsantos</a><font size="2"><br>Currículo Lattes: </font><a href="http://lattes.cnpq.br/5997657584785803">http://lattes.cnpq.br/5997657584785803</a></div>------------------------------------------------------------------------------------------</div></div>