landscapemetrics icon indicating copy to clipboard operation
landscapemetrics copied to clipboard

CWED contrast weighted edge density

Open bonushenricus opened this issue 2 years ago • 6 comments

Greetings excellent landscapemetrics. It would be interesting to add the calculation of the "contrast weighted edge density" (CWED) metric, present in both FRAGSTAT and GRASS. Do you think it is difficult? The difficulty is that it weighs the classes differently, and it depends on how they are attributed in a raster in R, I think. Thank you

bonushenricus avatar Jan 02 '22 15:01 bonushenricus

Hey,

I just quickly looked at the CWED metric, so my idea could be completely wrong, but couldn't you just calculate the "regular" edge density first and then multiply it with the weights afterward?

mhesselbarth avatar Jan 03 '22 14:01 mhesselbarth

Thanks for your answer. Wishes for a happy 2022. Yes, I could actually do what you suggest, but the problem is that I have to do it with a moving-window, and in landscapemetrics with the moving-window function I can only calculate landscape metrics, but I need the values per class for to be able to give it some weights.

bonushenricus avatar Jan 04 '22 08:01 bonushenricus

We are working on a class-level moving window implementation (#211). When we have that, it should be trivial, right?

bitbacchus avatar Jul 15 '22 07:07 bitbacchus

How is that related to a moving window? CWED is just another metric as far as my understanding goes...

mhesselbarth avatar Jul 21 '22 05:07 mhesselbarth

How is that related to a moving window? CWED is just another metric as far as my understanding goes...

@bonushenricus wrote:

Yes, I could actually do what you suggest, but the problem is that I have to do it with a moving-window, and in landscapemetrics with the moving-window function I can only calculate landscape metrics, but I need the values per class for to be able to give it some weights.

bitbacchus avatar Jul 21 '22 08:07 bitbacchus

My bad, sorry. Didn't read that... 🙈🤷‍♂️

mhesselbarth avatar Jul 21 '22 10:07 mhesselbarth

I don't think we will make any progress on this in the nearer future, sorry.

mhesselbarth avatar Sep 29 '23 14:09 mhesselbarth