<div dir="ltr"><div><div><div><div><div><div>**As we always recommend**  &quot;look at your data&quot;<br><br></div>printVarSummary(air_month_decade)<br></div>printMinMax(air_month_decade, 0)<br><br>===<br></div>What range of values to you see?<br><br></div>If the numbers are (say) 123456.789<br><br></div>Then fortran will print ****** because it can no fit the number in the format  you provided. Specifically,<br></div>the  f7.2  part of the specification.<br><br><br><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 2:24 PM, Ipshita Majhi <span dir="ltr">&lt;<a href="mailto:ipmajhi@alaska.edu" target="_blank">ipmajhi@alaska.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>