A Python package for Land Suitability Analysis.
Project description
LSAPy: Land Suitability Analysis in Python
LSAPy stands for Land Suitability Analysis (LSA) in Python. Its objective is to make conducting LSA in Python easier and more accessible to users. It provides a set of objects built around xarray and operating together, making LSA’s workflow straight forward and easy to understand.
Quick Start
To install LSAPy, you can use pip:
pip install lsapy
You can now perform your LSA:
# import modules
from lsapy import LandSuitabilityAnalysis, SuitabilityCriteria, SuitabilityFunction
# define your criteria
criteria = {
'crit1': SuitabilityCriteria(
name='criteria1',
indicator= indicator1, # xarray object
func=SuitabilityFunction(name="function_name", params={'param1': value1, 'param2': value2})
),
'crit2': SuitabilityCriteria(
name='criteria2',
indicator= indicator2, # xarray object
func= SuitabilityFunction(name="another_function_name", params={'param1': value1, 'param2': value2})
)
# add all necessary criteria
}
# define your land suitability
lsa = LandSuitabilityAnalysis(
land_use= 'land_use_name',
criteria= criteria,
)
# run your analysis
lsa.compute_suitability(params)
More detailed tutorials and examples can be found in the User Guide.
Contributing
LSAPy is an open-source project and we welcome contributions from the community. If you are interested in contributing, please refer to the Contribution section for guidelines on how to get started helping us improve the library.
Credits
The development of LSAPy started as part of a PhD, funded by the Food Transition 2050 Joint Postgraduate School and hosted by the University of Canterbury in New Zealand.
The Python package has been created following the pyOpenSci Guidebook.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lsapy-0.1.0.tar.gz.
File metadata
- Download URL: lsapy-0.1.0.tar.gz
- Upload date:
- Size: 21.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ce74970fc58fc8d547c205aa722e51c895bc220ccbdbf130530aa4477afa701
|
|
| MD5 |
198b23299919952395ec2d530879d797
|
|
| BLAKE2b-256 |
fbe8e6a7478742dcefb24247117ddb41e4305210e0addb627cd17cb8c4d2a4ca
|
Provenance
The following attestation bundles were made for lsapy-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on baptistehamon/lsapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lsapy-0.1.0.tar.gz -
Subject digest:
4ce74970fc58fc8d547c205aa722e51c895bc220ccbdbf130530aa4477afa701 - Sigstore transparency entry: 311463273
- Sigstore integration time:
-
Permalink:
baptistehamon/lsapy@1b97cb95e9edcb1e66bb55db5cad966b02a490cc -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/baptistehamon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1b97cb95e9edcb1e66bb55db5cad966b02a490cc -
Trigger Event:
release
-
Statement type:
File details
Details for the file lsapy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lsapy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af458b7cd77d7530ca52703abefb326c10a25954c1768e5223237d72f18c0376
|
|
| MD5 |
8b326955bd355ab5127dd6c0f6ecb611
|
|
| BLAKE2b-256 |
762c40c23916e6a04b859ca24154d0f4157697695818dbadb9ba0084c1c41397
|
Provenance
The following attestation bundles were made for lsapy-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on baptistehamon/lsapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lsapy-0.1.0-py3-none-any.whl -
Subject digest:
af458b7cd77d7530ca52703abefb326c10a25954c1768e5223237d72f18c0376 - Sigstore transparency entry: 311463274
- Sigstore integration time:
-
Permalink:
baptistehamon/lsapy@1b97cb95e9edcb1e66bb55db5cad966b02a490cc -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/baptistehamon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1b97cb95e9edcb1e66bb55db5cad966b02a490cc -
Trigger Event:
release
-
Statement type: