Closed khouakhi closed 3 years ago
Hi @khouakhi , thanks for the report.
After a bit of searching I guess that the attribute it is trying to set is _FillValue
, which should not be overwritten after variable creation (reference: https://github.com/ec-jrc/lisflood-lisvap/commit/59a8407637c8791af6fc330af157459ac08088ec). I tried to manually set a new _FillValue
attribute and got the same error message.
I'm pushing a fix to the master branch, implementing this fix:
change line 897 in ipart/utils/funcs.py
from
if kk!='isunlimited':
to
if kk!='isunlimited' and kk!='_FillValue':
Btw, how did you install IPART
, via conda? I will update the conda version later this week (I need to refresh myself about how to maintain conda packages). So if you are in a hurry, could you help manually changing that line of code, and let me know whether that fixes your issue?
Hope that helps
Yes I installed IPART using conda. I modified the source funcs.saveNCDims and all works.
_FillValue error when trying to save the nc files using funcs.saveNC () . It seems a _FillValue attribute needs to be set
funcs.saveNC(abpath_out, ivt.'w')
This happened also when the running the THR script