<div dir="ltr"><div><div><div><div><div>Thank you! I did look at the data and here are the min and max result<br></div>min= 47385.7<br></div>max=514020<br><br></div>I ran the code again using 52f6.1 but it still does not fit in.<br></div>This is my understang that the number before the decimal gives the biggest range of the output and after decimal is the number after that. Am I still missing something.<br></div>Thank you<br>Best Regards<br>Ipshita<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 3:46 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></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><div><div><div>**As we always recommend** "look at your data"<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"><div><div class="h5">On Wed, Dec 10, 2014 at 2:24 PM, Ipshita Majhi <span dir="ltr"><<a href="mailto:ipmajhi@alaska.edu" target="_blank">ipmajhi@alaska.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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 = "weekly_mean_sce.txt"<br>write_matrix(air_month_decade, "52f7.2", opt)<br><br></div>It would be great if someone can help me.<br></div>
<br></div></div>_______________________________________________<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>
</blockquote></div><br></div>