InVEST-natcap.invest.annual_water_yield-log-2024-01-31–21_30_30.txt (18.4 KB)
产水量可以正常运行得到产水深度的栅格图层结果,但csv文件的结果是异常的,如precip_mn、wyield_mn、AET_mn、wyield_vol为nan,这是什么原因呢?
Hi @zj202021009 , if you have nan
values in the results, it is most likely because there are nan
values in one of the input rasters. Please see some other discussions on this topic, for example,
Thank you,
很抱歉,因为我的基础很差,我还是没有发现问题所在。一方面我的产水量模型可以运行成功,并得到产水深度的tif图层结果,但csv文件中存在nan值,我想知道在这种情况下我的产水深度的结果是正确的吗?此外,我把我的数据共享给你,如果你可以帮我找到问题所在,我将十分感激。
Example.zip (3.2 MB)
CLCD.zip (3.8 MB)
Hi @zj202021009 , I know this is a tricky problem to solve. I have confirmed that two of the rasters that you shared contain pixels with nan
values, and those are likely the cause of the nan
values in the water production results. The two files are:
2020Pre.tif
3741 pixels with nan
2020Pre1.tif
3741 pixels with nan
If you can reclassify those pixels to something else, such as the NoData value of the raster, then I expect that will solve the problem.
Best,
十分感谢,你的意见十分有针对性,我再试一下,特别谢谢你。
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.