write 4 output at a time in file
suha aslam
aslamsuha at YAHOO.COM
Sat Apr 8 05:22:24 EDT 2006
dear GrADS users,
In a grads script I compute four parameters and
want to write all the four to an ascii file as
follows.
(a) (b) (c) (d)
--------------------------------------------------
Var(1,a) Var(1,b) Var(1,c) Var(1,d)
Var(2,a) Var(2,b) Var(2,c) Var(2,d)
..................................................
..................................................
Var(n-1,a) Var(n-1,b) Var(n-1,c) Var(n-1,d)
Var(n,a) Var(n,b) Var(n,c) Var(n,d)
--------------------------------------------------
and i want to call a value from the column (d)
corresponding to the value in column (c) OR (b) (in
the same row). A fortran code to write the data as i
want is given below
***************************************************
do 30 k=1,n
c(k)=fn(k)
p(k)=fn1(k)
a(k)=fn2(k)
w(k)=fn3(k)
write(*,40)c(k),p(k),a(k),w(k)
30 continue
40 format(f7.4,1x,f8.4,1x,f15.4,1x,f15.4)
**************************************************
i want a similar operation in grads and then to
call a value from one column according to some
threshold
values in another column. i hope this would
communicate my need.
thanks
suha
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the gradsusr
mailing list