<div dir="ltr"><div class="gmail_default" style="font-size:small">There&#39;s no specific &quot;printVarSummary&quot; type of command, but if you read the data using PyNIO, and you don&#39;t subset the array, then &quot;print&quot; should give you printVarSummary like output:</div><div class="gmail_default">







<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">&gt;&gt;&gt; import Nio<br></span>&gt;&gt;&gt; a = Nio.open_file(&quot;<a href="http://atmos.nc">atmos.nc</a>&quot;)<br>&gt;&gt;&gt; u = a.variables[&#39;u&#39;]</p><div><div>&gt;&gt;&gt; print(u)</div><div>Variable: u</div><div>Type: float</div><div>Total Size: 32768 bytes</div><div>            8192 values</div><div>Number of Dimensions: 2</div><div>Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[lat | 64] x [lon | 128]</div><div>Coordinates: </div><div>            lat: [-87.8638..87.8638]</div><div>            lon: [ 0..357.1875]</div><div>Number of Attributes: 5</div><div>         lev :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>7.59482</div><div>         time :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>791</div><div>         long_name :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>zonal wind component</div><div>         units :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>m/s</div><div>         time_op :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>average</div><div style="font-size:small"><br></div></div><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">Unfortunately we don&#39;t have many of our computational functions imported to python, including month_to_annual. This particular function is written entirely in NCL and involves many lines of code.  You might be able to convert it to python yourself, as it seems like you know a little bit of NCL.</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">Good luck,</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">--Mary</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 7:58 PM, Guoanboyu <span dir="ltr">&lt;<a href="mailto:201521490002@mail.bnu.edu.cn" target="_blank">201521490002@mail.bnu.edu.cn</a>&gt;</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:14px;font-family:Arial"><div>Hi</div><div>    Do pyngl have some function like ncl to p<span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;background-color:rgb(255,255,255)">rints a summary of a variable&#39;s information(printVarSummary) or to c<span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;background-color:rgb(255,255,255)">onverts monthly values to annual </span></span><span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)"><span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">values(</span>month_to_annual)?</span></div><div><span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)"><br></span></div><div><span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">Thanks</span></div><div><span style="font:13.33px/16px verdana,sans-serif;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">Anboyu</span></div></div><br><br>______________________________<wbr>_________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/pyngl-talk</a><br>
<br></blockquote></div><br></div>