I utilized a LULC map with 500m resolution for running the carbon model and everything worked fine. Now that I’ve improved the resolution to 100m I receive this error: Carbon Model - KeyError Encountered: nan
I used the same carbon pools. I attach here the log text file.
Can you describe how you improved the resolution on your LULC raster? Something could have gone wrong in re-sampling and it might be worth pulling that file up in ArcGIS or QGIS and doing some symbolizing to see if anything stands out as “bad data”.
The main thing to pay attention to is whether the resampling created any new values in the 100m LULC map that were not in the 500m version. If you used the “nearest” method, then it probably shouldn’t have, but look especially around the edges of the raster to make sure. The fact that the error is for “nan” and not an actual number is interesting - can you find any evidence of NaN actually being assigned to any raster cells?
sorry if it took me a few days to reply but I confirm that you were right. I’ve found a few pixels with no value, so I suppose that this was the problem.