[pyngl-talk] Skew T
Mateus da Silva Teixeira
mateusstex at gmail.com
Sun Jun 9 20:00:03 MDT 2019
Thank you for your answer.
Is there a schedule for next releases of PyNGL?
> Em 6 de jun de 2019, à(s) 18:52, Kevin Hallock <hallock at ucar.edu> escreveu:
> Hi Mateus,
> Thanks for reporting this behavior.
> After taking a closer look, this does appear to be a bug with sktTemperatureUnits (as well as sktHeightScaleUnits). I fixed the bug in the “develop” branch of the PyNGL code, so it will be included with our next release of PyNGL.
> In the meantime, a temporary workaround is to use essentially any other skew-T resource (such as sktHeightScaleOn, as you discovered) along with sktTemperatureUnits. You can even set the other resource to its normal default value, it just needs to be included on the cfg Resources() object.
> A full list of resources that can be used to trigger the correct sktTemperatureUnits behavior can be found by running the following code:
> from ngl import RscConv
> I hope this helps!
>> On Jun 6, 2019, at 2:29 PM, Mateus da Silva Teixeira via pyngl-talk <pyngl-talk at ucar.edu <mailto:pyngl-talk at ucar.edu>> wrote:
>> Dear users,
>> I've plotted a skewT log p chart and noted a strange behaviour of resource sktTemperatureUnits.
>> It seems only work and it`s used along with the resource sktHeightScaleOn.
>> import Ngl
>> ag = Ngl.open_wks( 'pdf', 'skewT' )
>> cfg = Ngl.Resources()
>> cfg.sktHeightScaleOn = True
>> cfg.sktTemperatureUnits = 'celsius' # only works with above line
>> bkg = Ngl.skewt_bkg( ag, cfg )
>> Ngl.draw( bkg ) # deve ser desenhandos
>> Is that correct?
>> I'm using Python 3.6.7 and PyNGL 1.6.1.
>> Best regards,
>> pyngl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk <http://mailman.ucar.edu/mailman/listinfo/pyngl-talk>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pyngl-talk