Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CWED contrast weighted edge density #249

Closed
bonushenricus opened this issue Jan 2, 2022 · 7 comments
Closed

CWED contrast weighted edge density #249

bonushenricus opened this issue Jan 2, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@bonushenricus
Copy link

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

@Nowosad Nowosad added the enhancement New feature or request label Jan 2, 2022
@mhesselbarth
Copy link
Member

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?

@bonushenricus
Copy link
Author

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.

@Nowosad Nowosad added the question Further information is requested label Jul 10, 2022
@bitbacchus
Copy link
Member

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

@mhesselbarth
Copy link
Member

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

@bitbacchus
Copy link
Member

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.

@mhesselbarth
Copy link
Member

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

@Nowosad Nowosad removed the question Further information is requested label Oct 7, 2022
@Nowosad Nowosad assigned bitbacchus and unassigned mhesselbarth Oct 7, 2022
@mhesselbarth
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants