Closed phargogh closed 1 month ago
Here's a summary of what I've found so far, summarized as 4 representative files:
output/urban_nature_balance_percapita_demand100.tif
("demand per capita") has valid pixel values for the entire raster.output/urban_nature_balance_totalpop.tif
("balance") has valid pixel values only where both the LULC and the population rasters have valid pixel values.The question here is: should the demand per capita raster have valid pixel values where the LULC or population rasters do not?
Functionally, the model isn't doing anything wrong here. The way that we are using a non-normalized convolution is to add up (and potentially weight) all of the people within a certain radius of some urban nature. Thus, a pixel that is nodata in the LULC could, in fact, have nonzero people within the search radius and therefore have a computed value, as we see in the demand per capita raster. The balance raster, on the other hand, is directly computed as the product of another output with the population raster, so if the population raster is nodata, balance cannot be calculated.
But, I agree with the notion that we might want to be more consistent with which pixels we want to have as outputs and mask accordingly.
@phargogh To your question "should the demand per capita raster have valid pixel values where the LULC or population rasters do not?"
For the outputs -- supply raster
and balance_percap
, would it be a good idea that the model can mask the pixels outside of the boundary?
After filling the NA in Pop
I think we resolved this by deciding that the population raster really needed to have its nodata values filled. Closing this issue, but feel free to reopen if needed!
@Yingjie4Science mentioned in a slack message that while some raster outputs of the Urban Nature Access model have nodata holes where the population raster is nodata, there are other rasters (
urban_nature_supply.tif
andurban_nature_balance_totalpop.tif
were specifically called out) that seem like they should also have nodata where the population raster is nodata.This is specifically using the
greenspace
execution mode withdichotomy
kernel.I think this is a bug in the model, but I'm looking into it a bit more to figure out why.