Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

Exception has occurred: ValueError

negar
New Contributor I
762 Views
 
I have downloaded monthly mean wind speed of terraclimate data for 20 years (2000-2019) which have NetCDF format, but unfortunately, each year has a single NetCDF file, and I want to merge them all to have a single wind speed which is from 2000 to 2019. So, I am using xarray in python to join these NETCDF files, and this is my code:
 
import xarray as xr
 
import glob
 
ds = xr.open_mfdataset("C:/Users/Nazanin/Desktop/other/nc/*.nc")
 
ds.to_netcdf('Final.nc')
 
but it gives me this error:
 
Exception has occurred: ValueError
 
Variable 'ws' has conflicting _FillValue (32768) and missing_value (-32768). Cannot encode data.
 
File "C:\Users\Nazanin\Desktop\other\nc\nc.py", line 4, in <module> ds.to_netcdf('Final.nc')
Could anybody help me with this error?
0 Kudos
3 Replies
AthiraM_Intel
Moderator
736 Views

Hi,


Thanks for reaching out to us.


Could you please let us know whether you are using any of the Intel tools or packages for your work?


We provide support only for queries related to Intel products.


Thanks.



0 Kudos
AthiraM_Intel
Moderator
710 Views

Hi,


Could you please give us an update?


Thanks.


0 Kudos
AthiraM_Intel
Moderator
683 Views

Hi,


We have not heard back from you, we wont be monitoring this thread. If you need further assistance, please post a new thread.


Thanks


0 Kudos
Reply