ValueError: The biophysical table is missing a row for lucode(s) [255]

Thanks for these items. There’s a couple things going on here, including a misleading error message since you do have “0” present in the biophysical table.

But, looking at the updated landcover raster, it seems likely that “0” is intended to represent nodata, rather than a particular landcover type. All the green around the outside of this raster has a value 0.

In that case, I think the best thing to do is follow the suggestions from this post to assign a NoData value: ValueError: The biophysical table is missing a row for lucode(s) [0] - #4 by dave

And then remove the row for “lucode 0” in your biophysical table.

We will also fix the problem of the misleading error message. Because technically I think your data should be okay the way it is.