[ncl-talk] Output not correct while using write_matrix

Ipshita Majhi ipmajhi at alaska.edu
Wed Dec 10 14:24:14 MST 2014


Dear NCL,

I have a code that works and I am trying to write output out to a file, the
file is 47X52 and I am using write_matrix. The output gives only stars or
no numbers. I tried taking slices of the 2D matrix and I am not able to get
the right output. Should I write a code in fortran and then make it work in
NCL?
Here is a piece of my code:-
do i=1,47-1
do j=0,357,7
pweek(i,j/7) = avg(y(j:j+6))
end do
end do

opt = True
opt at fout = "weekly_mean_sce.txt"
write_matrix(air_month_decade, "52f7.2", opt)

It would be great if someone can help me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141210/17d0830f/attachment.html 


More information about the ncl-talk mailing list