Scenario Generator Rule Based ERROR

Hello NatCap team,

I am encountering some problems in using the Scenario Generator Rule Based model. When I try to run a simulation I receive the following error message "int() argument must be a string or a number, not "NoneType"". Aldo, when model is running I can see a error message "pygeoprocessing.geoprocessing WARNING Warning the nodata value in (...) is not set".  What does that mean? 

Thanks
Pablo

Comments

  • jdouglassjdouglass Administrator, NatCap Staff
    Hi @Pablito,  If I remember correctly from our conversation in a separate thread, the "int() argument must be a string or a number, not 'NoneType'" error was because there was a raster input that did not have a nodata value.  The WARNING messages would probably be related to this.  There are cases where not having a set nodata value can be problematic for a model, so we log a warning about this when we detect it internally.  In this case, the rule-based scenario generator failed because it expected an integer nodata value.
Sign In or Register to comment.