kevinwolz / hisafer

An R toolbox for the Hi-sAFe biophysical agroforestry model
6 stars 4 forks source link

plot_hisafe_scene() Error for cellWidth > 1 #148

Closed ThomasGendron closed 4 years ago

ThomasGendron commented 4 years ago

Hello ,

I noticed some mistake with 'plot_hisafe_scene' when cellWidth > 1.

I used "restincliere_agroforestry_A2" as template.

Scene without modification :

image

treeCropDistance = TCD = 2 m image

No problem here, even for treeCropRadius

But with cellWidth (CW) = 2 m and TCD = 0.5 m, the scene is not correctly describe.

image

Other test : image image

This issues don't come from hisafe, we check it on the output and the intercrop is well assigned.

Hypothesis :

Thanks and good luck

kevinwolz commented 4 years ago

Thanks for finding this! The fix will be available soon in hisafer 1.5.0. There are several other updates happening as a result of the upgrade to Hi-sAFe 4.1.