I am having some problems with Nutrient Delivery Ratio model. The model ran without showing any error, however the “n_export” and “p_export” outputs have only NA values. Similarly, the attribute table of “watershed_results_ndr.shp” also has NA in all lines.
I checked the intermediate outputs and some of them seems OK (ie with values), such as “ndr_n” and “ndr_p”. However, “surface_load_p” and “runoff_proxy_index” have only NA values.
Thanks for posting and including the log file. Nothing jumps out to me in the log file unfortunately. Would you mind sharing your inputs so I can reproduce the problem? You can share them via Google Drive ( or another cloud sharing service ), or email directly to ddenu @ stanford . edu if they would fit in a zip file.
Thanks for sharing your data. I was able to run it and reproduce the problem. In looking at the inputs I noticed that the Nutrient Runoff Proxy input looked like a DEM more so than a quickflow index or precipitation raster. I just wanted to double check that input was desired.
Thanks for checking that. I double checked the Nutrient Runoff Proxy input and it seems correct. It is a precipitation raster that I took from CHELSA Bioclim (Bio12 Annual Precipitation). But I agree that the DEM seems to have a great influence in the precipitation in the region. Please let me know if you have any other suggestions.
I think I figured out what is going on. The Nutrient Runoff Proxy input has a nodata value set to nan. Usually we see nodata set to a valid number or not set at all (None). The nan value is then causing issues when we try to normalize that raster.
Could you convert that input’s nodata value to -999.0 and try running the model again?