Skip to main content

A Python package for Land Suitability Analysis.

Project description

LSAPy Logo

LSAPy: Land Suitability Analysis in Python

Python Package Index Build Conda Version Supported Python Versions Project Status: Active - The project has reached a stable, usable state and is being actively developed. Testing Status Coverage Status (Coveralls) Ruff pre-commit.ci status Documentation Status Link to question issues Zenodo DOI

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

or conda:

conda install -c conda-forge lsapy

You can now perform your LSA:

# import modules
from lsapy import LandSuitabilityAnalysis, SuitabilityCriteria

# define your criteria
criteria = {
    "crit1": SuitabilityCriteria(
        name="criteria1",
        indicator=indicator1,  # xarray object
        func="function_name",
        fparams={"param1": value1, "param2": value2},
    ),
    "crit2": SuitabilityCriteria(
        name="criteria2",
        indicator=indicator2,  # xarray object
        func="another_function_name",
        fparams={"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.run(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.

Food Transition 2050 Logo University of Canterbury Logo University of Canterbury Logo

The Python package has been created following the pyOpenSci Guidebook.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lsapy-0.3.0.tar.gz (861.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lsapy-0.3.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file lsapy-0.3.0.tar.gz.

File metadata

  • Download URL: lsapy-0.3.0.tar.gz
  • Upload date:
  • Size: 861.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lsapy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f4bcc1dde71f24c5ec441c14a3679f65202dc29f25a3baaab88f0222acca8bd0
MD5 ff38ac42df198ad0bff7ba69f6bef166
BLAKE2b-256 9971c20120f68b02f029bb481601c655065e5b2d182673fd308503a4f490bb3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lsapy-0.3.0.tar.gz:

Publisher: publish-pypi.yml on baptistehamon/lsapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lsapy-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: lsapy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lsapy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b6cb726dbe766f0aac5d8689041e021753667d5eef51b4a2d5561234f9607d9
MD5 07b0bd6d7f36a9f16008a7762a40b6b2
BLAKE2b-256 26ed8b51aef71665a4dcaa92b338c072674dc664430818c7300e2e881f626cc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lsapy-0.3.0-py3-none-any.whl:

Publisher: publish-pypi.yml on baptistehamon/lsapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page