Re: Output file

From: Gus Correa <gus_at_nyahnyahspammersnyahnyah>
Date: Thu Apr 19 2012 - 14:41:11 MDT

Hi Guilherme

You loop starts with 'imes' equal to zero,
which cannot be used as the size of your 'saida' array
in 'new'.
The error message tells you about this.

If 'saida' is to hold the full data matrix,
it should be created outside the loop:

saida = new( (/143, 13/),typeof(npp) )

It could be loaded inside the loop, if you want:

saida(imes, 1) = num1n
...

It should be written after the loop ends, I guess.

Or not?
Anyway, not sure if I understood the script logic right.

I hope this helps,
Gus Correa

On 04/19/2012 03:45 PM, Guilherme Martins wrote:
> Hi users!
>
> I'm trying to write a output file, but I don't get, appear the error below.
>
> I'm using the:
>
> saida = new( (/imes,13/),typeof(npp) ) --> but return a error I suppose
> in the typeof
>
> Anyone help me?
>
> Thanks,
>
> Guilherme.
>
>
>
>
>
> Imagem inline 1
>
>
> --
> *Guilherme Martins*
> http://guilhermemartins.hd1.com.br/
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 19 14:41:26 2012

This archive was generated by hypermail 2.1.8 : Fri Apr 20 2012 - 16:21:18 MDT