Tree generator error #298
-
Hi, I get the following error trying to use the tree generator : ValueError: zero-size array to reduction operation maximum which has no identity Here are my files : Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@nilswallenberg , can you have a look? |
Beta Was this translation helpful? Give feedback.
-
Hi FPYS, Correct me if I'm wrong: I think the reason why you are getting this error is because the resolution of your raster's is 2 meters, whereas the diameters of some of the trees is smaller than this. What you can do is either change the resolution of your raster's to a higher resolution, or set all tree diameters to same diameter as the raster resolution (that is 2 meter), because now everything below 2 will become zero. Best, |
Beta Was this translation helpful? Give feedback.
Hi FPYS,
Correct me if I'm wrong:
type = tree type
Cironf_M = diameter of tree
TrunkH = trunk zone height
hauteurenm = tree height
I think the reason why you are getting this error is because the resolution of your raster's is 2 meters, whereas the diameters of some of the trees is smaller than this.
What you can do is either change the resolution of your raster's to a higher resolution, or set all tree diameters to same diameter as the raster resolution (that is 2 meter), because now everything below 2 will become zero.
Best,
Nils