[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #VIB-661924]: error in example on website



Hello!

Thanks for reaching out to us here. The python-gallery site you're accessing 
here is retired and no longer maintained. This has moved to our one stop shop,

https://unidata.github.io/python-training/

where our current training, gallery, and workshop material is available. The 
specific notebook you've referenced is having a separate, small data access URL 
issue at the moment if you try to follow the notebook yourself right now, but 
we're aware of and will be fixing this. Otherwise it should run without your 
issue!

Hope this helps.


All the best,
Drew


> p.s. there also seem to be some additional issues with converting units and 
> array types in this code, so hopefully itâs possible to check on those as 
> well.  thanks!
> 
> 
> 

> Hi all,
> 
> I was working through a few of the examples on the python gallery and ran 
> into an error that I thought Iâd pass along.  Specifically, itâs this 
> example: 
> https://unidata.github.io/python-gallery/examples/850hPa_Temperature_Advection.html
> 
> 
> When smoothing the advection field using
> 
> adv = 
> ndimage.gaussian_filter<https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.gaussian_filter.html#scipy.ndimage.gaussian_filter>(adv,
>  sigma=3, order=0) * 
> units<https://unidata.github.io/MetPy/latest/api/generated/metpy.units.html#metpy.units.units>('K/sec')
> 
> 
> 
> it throws an error:
> 
> array type dtype('O') not supported
> 
> Guessing thereâs a fairly simple fix to this because it just has to do with 
> the array type?
> 
> Thanks!
> 
> 


Ticket Details
===================
Ticket ID: VIB-661924
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.