Open thomasarsouze opened 3 weeks ago
Hi @thomasarsouze . Thanks for the feedback. I am not surprised it takes time for the computation. Could you prepare a zip file for data on Peru that I could download will the following folders:
Thanks.
Sure... sending link by mail.
Thanks @thomasarsouze .
First error: Yes, for big countries and long time-periods, it might be necessary to increase maximal distance defined in argument 'dist_bins'. We should indicate this in the documentation.
Second error: thanks to your feedback I corrected a bug in the riskmapjnr.benchmark.defrate_per_class()
function (see commit db79e71). Indeed some risk classes might not exist in the future as forest is disappearing. I had the same problem while running the plugin on Guatemala. Now it should be OK.
Third error for fitting FAR models on the historical period. I am not able to reproduce the error yet. Note that for large model, spatial cell size in sample should be set at 10km resolution to avoid estimating too many parameters. Maybe that's why you got some problems for calibrating the model for Peru with the default plugin parameters used in the Get Started tuto.
I do not close until we change doc for error 1 and fix the issue for error 3.
I've been running
deforisk
on the PERU aoi:It took ~4h for the
get_variables
part. In particular, it took 3 * 45mn to get the 3 filesdist_edge_tx.tif
(~560Mo each). ~50mn to get tmf dataThe benchmark part:
Traceback (most recent call last): File "/Users/arsouze/miniconda3/envs/deforisk/lib/python3.12/site-packages/riskmapjnr/dist_edge_threshold.py", line 346, in dist_edge_threshold index_thresh = np.nonzero(res_df["perc"].values > defor_threshold)[0][0]