<div dir="ltr"><div><div><div>Dear NCL,<br><br></div>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?<br></div>Here is a piece of my code:-<br>do i=1,47-1<br>do j=0,357,7<br>pweek(i,j/7) = avg(y(j:j+6))<br>end do<br>end do<br><br>opt = True<br>opt@fout = &quot;weekly_mean_sce.txt&quot;<br>write_matrix(air_month_decade, &quot;52f7.2&quot;, opt)<br><br></div>It would be great if someone can help me.<br></div>