How To Fix Attribute Error For Metpy Data From A Netcdf File Involving Xarray
I am getting this error: AttributeError: 'Dataset' object has no attribute 'metpy' when I am running my code. The particular lines in particular are: import Scientific.IO.NetCDF
Solution 1:
The issue here is an out-of-date MetPy version. The Xarray accessor was added in v0.8. To update to the current version of MetPy with the latest functionality, you can upgrade with conda update metpy
or pip install --upgrade metpy
.
Post a Comment for "How To Fix Attribute Error For Metpy Data From A Netcdf File Involving Xarray"