NUmpy
Jorge Conforte
jorge.conforte at inpe.br
Wed Sep 29 12:16:26 EDT 2021
Hi,
I have a netcdf file "uwnd_850_1981.nc" and I'm using the commands to
read it:
from numpy import dtype
fileu ='uwnd_850_1981.nc'
ncu = Dataset(fileu,'r')
uwnd=ncu.variables['uwnd'][:]
and I had:
<stdin>:1: DeprecationWarning: `np.bool` is a deprecated alias for the
builtin `bool`. To silence this warning, use `bool` by itself. Doing
this will not modify any behavior and is safe. If you specifically
wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I didn't how I have this message. My numpy verison is 1.21.2.
Please, how can I solve this.
Thanks,
Conrado
More information about the Python-list
mailing list