Closed fBedecarrats closed 3 months ago
Thanks, for catching this. We do not transform the asset to the CRS of the resource in calc_deforestation_area()
. I'll push a fix soon. In the meantime, this is how you can get to the raster:
library(sf)
library(terra)
library(mapme.biodiversity) # This is CRAN version
library(geodata)
mada <- st_as_sf(gadm("Madagascar", level = 0, resolution = 2, path = "."))
get_resources(mada, get_fritz_et_al())
fritz_et_al <- prep_resources(mada, resources = "fritz_et_al")[[1]]
That was quick! Thank you so much!
The following generates warnings including error messages:
Here is the output:
And the results are all in 0: