Skip to main content

A Python package for Land Suitability Analysis.

Project description

Python Package Index Build Zenodo DOI Ruff

LSAPy stand 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 SuitabilityFunction, SuitabilityCriteria, LandSuitability

# define your criteria
criteria = {
    'crit1': SuitabilityCriteria(
        name='criteria1',
        indicator= indicator1, # xarray object
        suitability_function= SuitabilityFunction("relevant-function")
    ),
    'crit2': SuitabilityCriteria(
        name='criteria2',
        indicator= indicator2, # xarray object
        suitability_function= SuitabilityFunction("relevant-function")
    )
    # add all necessary criteria
}

# define your land suitability
ls = LandSuitability(
    name= 'name_of_your_lsa',
    criteria= criteria,
)

# run your analysis
ls.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 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.1.0.dev2.tar.gz (21.7 MB view details)

Uploaded Source

Built Distribution

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

lsapy-0.1.0.dev2-py3-none-any.whl (20.7 MB view details)

Uploaded Python 3

File details

Details for the file lsapy-0.1.0.dev2.tar.gz.

File metadata

  • Download URL: lsapy-0.1.0.dev2.tar.gz
  • Upload date:
  • Size: 21.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for lsapy-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 7db9321e74bc096ebc4fffd6a3431c981b566683269823340ae95c00bb42b234
MD5 4fefbfd4ddfb910b0eccead094165465
BLAKE2b-256 f2b180bcd055043f89402239f2003d17e345c8fc02156d0ac0eefbcbb28a4e65

See more details on using hashes here.

File details

Details for the file lsapy-0.1.0.dev2-py3-none-any.whl.

File metadata

  • Download URL: lsapy-0.1.0.dev2-py3-none-any.whl
  • Upload date:
  • Size: 20.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for lsapy-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 c36cfdc938a010929058b28eda4a9705c224ead50bf21ffa30b370aa2af1e648
MD5 d206a34c1b1c37eae2b782d2a5591663
BLAKE2b-256 1c87b1a587482fee6578f37ef4c8739cb57c6790cd35dc2dcbab534fb2019aba

See more details on using hashes here.

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