I’m trying to run the coastal blue carbon model (dev build that you shared in a previous thread) and am getting an error when running the main model. The preprocessor runs without an error. The log makes me think that there’s something wrong with one of my csv inputs, but I’ve looked at them all and don’t see anything different from previous runs that have worked.
Log and csvs are attached; let me know if you need any additional information.
Sorry for the frustration here! The Coastal Blue Carbon model expects all of the landcover code labels to be unique, and one of the utilities we use for reading tables assigns .n suffixes to duplicate field values that it finds. So within the transition table alone, there a bunch of unique fieldnames including "accreting marsh high salinity", "accreting marsh low salinity", "accreting marsh medium salinity", and "background" (which is the KeyError you had previously mentioned). The LULC class names are used to index into the other tables, which is why they need to be unique.
I’ve made a note to improve how we handle duplicate labels in the model so that this will be much clearer in the future.
Let us know if this doesn’t solve the issue for you!
James
@matteoconv the snapshot table is just a list of paths to the input rasters (as described in the users’ guide) - you’d have to update my version to reflect your paths so it’s probably not worth the time for me to dig it up. If you’re looking to run the model with pre-existing data as a test, I’d recommend using the sample data that is downloaded with the InVEST model.