<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Kevin,<div class=""><br class=""></div><div class="">Thank you for your answer.</div><div class=""><br class=""></div><div class="">Is there a schedule for next releases of PyNGL?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Mateus</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Em 6 de jun de 2019, à(s) 18:52, Kevin Hallock <<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>> escreveu:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Mateus,<div class=""><br class=""></div><div class="">Thanks for reporting this behavior.</div><div class=""><br class=""></div><div class="">After taking a closer look, this does appear to be a bug with <b class="">sktTemperatureUnits</b> (as well as <b class="">sktHeightScaleUnits</b>). I fixed the bug in the “develop” branch of the PyNGL code, so it will be included with our next release of PyNGL.</div><div class=""><br class=""></div><div class="">In the meantime, a temporary workaround is to use essentially any other skew-T resource (such as <b class="">sktHeightScaleOn</b>, as you discovered) along with <b class="">sktTemperatureUnits</b>. You can even set the other resource to its normal default value, it just needs to be included on the cfg Resources() object.</div><div class=""><br class=""></div><div class="">A full list of resources that can be used to trigger the correct <b class="">sktTemperatureUnits</b> behavior can be found by running the following code:</div><div class=""><font face="Menlo" class="">from ngl import RscConv</font></div><div class=""><font face="Menlo" class="">print(RscConv.keys())</font></div><div class=""><br class=""></div><div class="">I hope this helps!</div><div class="">Kevin</div><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jun 6, 2019, at 2:29 PM, Mateus da Silva Teixeira via pyngl-talk <<a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear users,</div><div class=""><br class=""></div><div class="">I've plotted a skewT log p chart and noted a strange behaviour of resource <b class="">sktTemperatureUnits</b>.</div><div class="">It seems only work and it`s used along with the resource <b class="">sktHeightScaleOn</b>. <br class=""></div><div class=""><br class=""></div><div class=""><i class="">import Ngl<br class=""><br class="">ag = Ngl.open_wks( 'pdf', 'skewT' )<br class=""><br class="">cfg = Ngl.Resources()<br class="">cfg.sktHeightScaleOn = True<br class="">cfg.sktTemperatureUnits = 'celsius' # only works with above line<br class="">bkg = Ngl.skewt_bkg( ag, cfg )<br class=""><br class="">Ngl.draw( bkg ) # deve ser desenhandos<br class="">Ngl.end()</i></div><div class=""><br class=""></div><div class="">Is that correct?<br class=""></div><div class=""><br class=""></div><div class="">I'm using Python 3.6.7 and PyNGL 1.6.1.<br class=""></div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Mateus</div><div class=""><br class=""></div><div class=""><br class=""></div></div>
_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>