InVEST Carbon Model

sdattaraysdattaray Member

I am currently working with the InVEST Carbon Model (v. 3.3.3), and encountered an OverflowError, specifically "Python int too large to convert to C long". Attached is the log file. If there's more information I can provide, please let me know. 

Post edited by sdattaray on


  • RichRich Administrator, NatCap Staff
    Oh man what is this?  A nodata value that doesn't fit into an `int`?  It's a possibility.  Can you dropbox me your data to and I can take a look?
  • Sent the dropbox link.
  • RichRich Administrator, NatCap Staff
    Hi, your "nearest_to_edge_I.tif" raster file was missing a nodata value.  I added one and was able to run the model all the way through.  Here's a version of that file w/ a nodata file added for you:

  • Thank you! 

  • Follow up question: Previously you stated that the issue with the file was in the no data values in the future model raster. How do I edit the raster into a usable form?
  • RichRich Administrator, NatCap Staff
    Hi, if it's the same raster, I made one for you above (still available to download here

    I made it by effectively making a pass-through raster calculator call but setting a nodata value for the output.  There might be better ways to do it!
  • Okay, thank you! I'll be working with a bunch of the files so, I'll give it a try.
Sign In or Register to comment.