I am finding an issue with the NexGDDP hazard exposure data where some of the exposure values are greater than the total VOP for a crop/region.
For example when looking at Angola where hazard = any, there are 16 crops where the hazard exposure value is > total production value and the differences in value range from a few hundred to a few million (20 million in the case of sugarcane).
I'm assuming this is a result of the resampling in lines 132-139 of script "3_freq_x_exposure.r"
if(!is.null(crop_exposure_path)){
crop_exposure<-terra::rast(crop_exposure_path)
if(!is.null(resample_rast_path)){
crop_exposure_density<-crop_exposure/terra::cellSize(crop_exposure,unit="ha")
crop_exposure_density<-terra::resample(crop_exposure_density,data[[1]])
crop_exposure<-crop_exposure_density*cellSize(crop_exposure_density,unit="ha")
}
# and so on ...
}
Given the difference in pixel size, I wonder if relative vales are better and we don't report the total exposed value when extracting to the admin boundaries. From that we can take the relative exposure and multiply that by the higher-resolution exposure data to get estimated exposure values.
A quick fix for now would be to extract the resampled crop_exposure and livestock_exposure data to the resampled admin boundaries as no-hazard, and we can calculate % exposed from that
I am finding an issue with the NexGDDP hazard exposure data where some of the exposure values are greater than the total VOP for a crop/region.
For example when looking at Angola where hazard = any, there are 16 crops where the hazard exposure value is > total production value and the differences in value range from a few hundred to a few million (20 million in the case of sugarcane).
I'm assuming this is a result of the resampling in lines 132-139 of script "3_freq_x_exposure.r"
Given the difference in pixel size, I wonder if relative vales are better and we don't report the total exposed value when extracting to the admin boundaries. From that we can take the relative exposure and multiply that by the higher-resolution exposure data to get estimated exposure values.
A quick fix for now would be to extract the resampled crop_exposure and livestock_exposure data to the resampled admin boundaries as no-hazard, and we can calculate % exposed from that