-
Notifications
You must be signed in to change notification settings - Fork 1
broken api to download GFW data? #2
Comments
I can confirm that the Biomass Loss Layer currently cannot be downloaded due missing access rights. Seems like Amazon has changed its policy... We might need to include a authorization function. The only option for a rather "quick fix" that I see is to look if the data is available from another server. |
Hi @goergen95 , I need your help here. While running this code: # get the file paths to the raster files
treeCover = "../../datalake/mapme.protectedareas/input/global_forest_watch/treecover2000.tif"
lossYear = "../../datalake/mapme.protectedareas/input/global_forest_watch/lossyear.tif"
co2Layer = "../../datalake/mapme.protectedareas/input/global_forest_watch/co2_emission_.tif"
# read the region of interest
roi <-
st_read("../test/sampling_AOIs_2021-09-28.gpkg")
# transform roi to wgs84
roi <-
st_transform(roi,
"+proj=longlat +datum=WGS84 +no_defs")
# path to the installed grass
grass = "/usr/lib/grass78"
# zonal statistics
roi_stats = statsGRASS(grass = grass,
addon_base = "./data-raw/addons",
areas = roi[1, ],
tree_cover = treeCover,
tree_loss = lossYear,
tree_co2 = co2Layer,
idcol = "UID",
thresholdClump = 6,
thresholdCover = 10,
years = 2001:2020,
saveRaster = T,
outdir = "../test/sampling_results/rasters/") I got this error:
Is it related to grass installation on our server or due to the addons provider? Also, there is problem in accessing raster files as mentioned by Johannes, however, for now, we have all the rasters required for LA in the datalake. |
Hi @Ohm-Np, sudo apt-get install subversion Hope that helps! |
Thank you @goergen95, I will let you know if it works. |
there is currently a quickfix implemented for the download issue. The processing issue was resolved by reinstalling subversion |
Hi @goergen95 . The packages download function seem to be broken.
gives this error message:
Any ideas how to quickfix this?
The text was updated successfully, but these errors were encountered: