NDR Model -- fill pits creates filled DEM with one value

Thanks for sending your data @CarolynK.

The specific error that NDR produces is

ValueError: cannot convert float NaN to integer

This is happening because all of your input rasters’ NoData values are not set to a valid data value, they are set to “nan”. When I save new versions of the input rasters, assigning a value of -9999 to the NoData value, the model runs successfully.

The model doesn’t produce an intermediate file for the pit-filled DEM (which is actually surprising), so I can’t look at that specifically, but the resulting rasters look ok to me, regarding flow accumulation, stream creation and variation in N export.

For more information, please see this recent thread where we talk about the same NaN issue.

~ Stacie

1 Like