A Python package to execute Graphab analyses.
Project description
About
This package provides a Python interface to the program Graphab. The author(s) of this Python package are not developing Graphab. Rather, Graphab is an independent software which provides a graphical user interface, as well as a command line interface. Further information on Graphab can be found here.
Prerequisites
In order to install and use Graphab4py, Python >= 3.9 and Java >= 8 are both required. It is also recommended to have pip available to install the latest version of Graphab4py. Graphab is not required but can be installed through Graphab4py. Alternatively, an existing Graphab Java executable can be set up for use in Graphab4py.
Installation
Graphab4Py is available on PyPI. To install Graphab4Py, simply run the following line:
pip install graphab4py
Example
import graphab4py
graphab4py.set_graphab("/home/rca/opt/")
graphab4py.set_graphab("/home/rca/opt/")
prj = graphab4py.Project()
prj.create_project(
name = "MyProject", patches = "/home/rca/dat/pat/Patches.tif",
habitat = 1, directory = "/home/rca/prj"
)
prj.create_linkset(
disttype = "cost",
linkname = "L1",
threshold = 1000,
cost_raster = "/home/rca/dat/res/resistance_surface.tif"
)
prj.create_graph(graphname = "G1")
License
This is free and unencumbered software released into the public domain, as declared in the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for graphab4py-1.0.2b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1826c11e8fa9acc25de2336f7904b0da32adfb07fec668245001bc8daa8dce6 |
|
MD5 | b9eae0f204667915a84ea7c90c701d59 |
|
BLAKE2b-256 | 46a9a9668c3af669a4592f4674475e53c82e7769d166bd4d19a7e96992d77008 |