<div dir="ltr"><div><div><div>x = (/ (/ .9, 1.0, -.8, .6/) \<br> , (/-999.9, -999.9, -999.9, -999.9/) \<br> , (/ .7 , .8, -.7 , .6/) \<br> , (/ 1.4 , 1.4 , -1.4, .5 /) \<br> , (/2.3 , 2.3 , -2.3 , .5 /) \<br> , (/-999.9, -999.9, -999.9, -999.9/) /)<br><br>printVarSummary(x)<br><br>write_matrix (x, "4f7.1", False)<br><br>============<br><br><br><br>Variable: x<br>Type: float<br>Total Size: 96 bytes<br> 24 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [6] x [4]<br>Coordinates: <br> <br> 0.9 1.0 -0.8 0.6<br> -999.9 -999.9 -999.9 -999.9<br> 0.7 0.8 -0.7 0.6<br> 1.4 1.4 -1.4 0.5<br> 2.3 2.3 -2.3 0.5<br> -999.9 -999.9 -999.9 -999.9<br><br>====<br></div>(The above output is lined up perfectly on my screen.)<br><br></div>write_matrix, for historical reasons, is a fortran subroutine. Hence the <br><br><em>fmtf - </em>Format to be used, specified via Fortran style.<br><br>===<br></div><div>My guess is that it is dependent of the fortran compiler used for you version of NCL.<br><br></div><div>You mention AIX ...<br><br></div><div>Maybe others can help.<br></div><div>
<p class=""><br></p><br><br><br></div><div><div><div><div> <br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 1:16 AM, wen <span dir="ltr"><<a href="mailto:wenguanhuan@163.com" target="_blank">wenguanhuan@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:10px;font-family:Arial"><div>Hi all, </div><div> I use ncl (version 6.2.1) on aix unix platform to write data into file using function write_matrix. I found that the zero is missing before decimal point when the value is between 1 and -1. The value in the file is shown bellow. However I have not found this problem in redhat linux platform. <span style="font-size:10px;line-height:1.7"> Do anyone known how to keep the zero on aix platform? Please tell me. Thank you!</span></div><div><span style="font-size:10px;line-height:1.7"><br></span></div><div><div>.9 1.0 -.8 .6</div><div>-999.9 -999.9 -999.9 -999.9</div><div>.7 .8 -.7 .6</div><div>1.4 1.4 -1.4 .5</div><div>2.3 2.3 -2.3 .5</div><div>-999.9 -999.9 -999.9 -999.9</div></div><div><span style="font-size:10px;line-height:1.7"><br></span></div><br><br><br><br><div style="zoom:1">--<br><div>Best regards,</div><div>Guanhuan WEN</div><div style="clear:both"></div></div></div><br><br><span title="neteasefooter"><p> </p></span><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>