Record Variable

From: Adriane Lima Brito <meteorologia.dri_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 30 2013 - 13:45:28 MDT


My name is Adriane Lima Brito and I'm starting to use the NCL, excuse my
English but I am not yet familiar with the language. I'm doing a simple
example to test ... I wrote a vector x and the vector sum of the values
that were assigned to the variable y, the variable y is inside a loop =
1,20,4. The problem is that I can not save all values of y, I can only save
the last value of y. I wonder how do to keep all the y values in a file.

My script:


x = (/0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21/)

  do t=1,20,4

  y = x(t) + x(t+1) + x(t+2) + x(t+3)



  end do




Bacharelada em Meteorologia

Universidade do Estado do Amazonas - UEA

Escola Superior de Tecnologia - EST

Manaus - AM


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Oct 30 13:45:40 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 01 2013 - 08:58:14 MDT