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

[feature] functionality and tutorial for landscape connectivity analysis #76

Open
CWen001 opened this issue Aug 17, 2021 · 1 comment
Open
Assignees

Comments

@CWen001
Copy link

CWen001 commented Aug 17, 2021

Hello. The package has already provided an excellent presentation of the graph structure of a landscape, mostly for visualization and component/disconnection identification. Is it possible to take one step further, by providing a toolkit to analyze more landscape connectivity indexes? Like dPC, IIC, IF and more?

@herbiebradley
Copy link
Member

Thank you for the feedback @CWen001 - we will add some of the indexes you mention to the list of metrics included in the package in the next release. In the meantime, you can implement whatever metric you like yourself using the geograph.metrics.Metric class, for example:

from geograph.metrics import Metric
# pass GeoGraph object to custom function to calculate IIC
def iic_metric(geo_graph: geograph.GeoGraph) -> Metric:
    ...
    # calculate IIC here from geo_graph
    ...
    return Metric(
        value=iic_value,
        name="IIC",
        description="Integral index of connectivity.",
    )

geo_graph.metrics["IIC"] = iic_metric(geo_graph)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants