lsapy 0.2.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lsapy-0.2.0 → lsapy-0.3.1}/CHANGELOG.rst +47 -1
- {lsapy-0.2.0 → lsapy-0.3.1}/LICENSE +1 -1
- {lsapy-0.2.0 → lsapy-0.3.1}/PKG-INFO +18 -12
- {lsapy-0.2.0 → lsapy-0.3.1}/README.rst +17 -11
- lsapy-0.3.1/docs/api/criteria.rst +34 -0
- lsapy-0.3.1/docs/api/deprecated.rst +26 -0
- lsapy-0.3.1/docs/api/lsa.rst +43 -0
- lsapy-0.3.1/docs/api/standardize.rst +44 -0
- lsapy-0.3.1/docs/api/stats.rst +13 -0
- lsapy-0.3.1/docs/api/utils.rst +12 -0
- lsapy-0.3.1/docs/api.rst +15 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/getting_started/index.rst +6 -2
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/index.rst +1 -1
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Icon.png +0 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Icon.svg +532 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Logo_Dark.png +0 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Logo_FullColour.png +0 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Logo_FullColour.svg +548 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Logo_FullDark.png +0 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Logo_FullLight.png +0 -0
- lsapy-0.3.1/docs/logos/lsapy/LSAPy_Logo_Light.png +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/notebooks/criteria.ipynb +7 -6
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/notebooks/functions.ipynb +2 -2
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/notebooks/lsa.ipynb +8 -6
- {lsapy-0.2.0 → lsapy-0.3.1}/pyproject.toml +1 -1
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/__init__.py +1 -1
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/core/formatting.py +37 -24
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/criteria.py +180 -11
- lsapy-0.3.1/src/lsapy/functions/__init__.py +21 -0
- lsapy-0.3.1/src/lsapy/functions/_discrete.py +72 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/functions/_suitability.py +12 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/lsa.py +161 -12
- lsapy-0.3.1/src/lsapy/standardize.py +450 -0
- lsapy-0.3.1/src/lsapy/stats.py +276 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/conftest.py +29 -8
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/test_aggregate.py +1 -1
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/test_criteria.py +29 -7
- lsapy-0.3.1/tests/test_fitting.py +104 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/test_formatting.py +19 -10
- lsapy-0.3.1/tests/test_functions.py +315 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/test_lsa.py +4 -4
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/test_membership_fitting.py +20 -26
- lsapy-0.3.1/tests/test_standardize.py +239 -0
- lsapy-0.3.1/tests/test_stats.py +142 -0
- lsapy-0.2.0/docs/api/index.rst +0 -34
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Icon.png +0 -0
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Icon.svg +0 -244
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Logo_Dark.png +0 -0
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Logo_FullColour.png +0 -0
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Logo_FullColour.svg +0 -248
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Logo_FullDark.png +0 -0
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Logo_FullLight.png +0 -0
- lsapy-0.2.0/docs/logos/lsapy/LSAPy_Logo_Light.png +0 -0
- lsapy-0.2.0/src/lsapy/functions/__init__.py +0 -7
- lsapy-0.2.0/src/lsapy/functions/_discrete.py +0 -30
- lsapy-0.2.0/src/lsapy/statistics.py +0 -211
- lsapy-0.2.0/tests/test_functions.py +0 -273
- {lsapy-0.2.0 → lsapy-0.3.1}/CODE_OF_CONDUCT.md +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/CONTRIBUTING.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/Makefile +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/changelog.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/community/code_of_conduct.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/community/contributing.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/community/index.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/conf.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/logos/FT2050-full_colour.png +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/logos/UCBlack.png +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/logos/UCWhite.png +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/logos/lsapy/branding.md +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/make.bat +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/notebooks/index.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/readme.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/references.bib +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/docs/references.rst +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/environment.yml +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/noxfile.py +0 -0
- /lsapy-0.2.0/src/lsapy/core/aggregation.py → /lsapy-0.3.1/src/lsapy/aggregate.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/core/__init__.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/core/functions.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/core/options.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/data/registry.txt +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/functions/membership.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/utils/__init__.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/src/lsapy/utils/_utils.py +0 -0
- {lsapy-0.2.0 → lsapy-0.3.1}/tests/test_utils.py +0 -0
|
@@ -2,6 +2,52 @@
|
|
|
2
2
|
Changelog
|
|
3
3
|
=========
|
|
4
4
|
|
|
5
|
+
v0.3.1 (2025-11-14)
|
|
6
|
+
-------------------
|
|
7
|
+
Contributor to this version: Baptiste Hamon (@baptistehamon).
|
|
8
|
+
|
|
9
|
+
Bug fixes
|
|
10
|
+
^^^^^^^^^
|
|
11
|
+
* The `np.vectorize` decorator has been removed of standardization functions to fix fitting functions issues (issue `#101 <https://github.com/baptistehamon/lsapy/issues/101>`_, PR `#102 <https://github.com/baptistehamon/lsapy/pull/102>`_).
|
|
12
|
+
|
|
13
|
+
v0.3.0 (2025-11-10)
|
|
14
|
+
-------------------
|
|
15
|
+
Contributor to this version: Baptiste Hamon (@baptistehamon).
|
|
16
|
+
|
|
17
|
+
Announcements
|
|
18
|
+
^^^^^^^^^^^^^
|
|
19
|
+
* `LSAPy` is now available on `conda-forge <https://anaconda.org/conda-forge/lsapy>`_ (issue `#68 <https://github.com/baptistehamon/lsapy/issues/68>`_, PR `#74 <https://github.com/baptistehamon/lsapy/pull/74>`_).
|
|
20
|
+
|
|
21
|
+
New features
|
|
22
|
+
^^^^^^^^^^^^
|
|
23
|
+
* A new ``boolean`` suitability function has been added (issue `#85 <https://github.com/baptistehamon/lsapy/issues/85>`_, PR `#86 <https://github.com/baptistehamon/lsapy/pull/86>`_).
|
|
24
|
+
* The ``name`` and ``indicator`` arguments of ``SuitabilityCriteria`` can now be optional (issue `#84 <https://github.com/baptistehamon/lsapy/issues/84>`_, PR `#87 <https://github.com/baptistehamon/lsapy/issues/87>`_).
|
|
25
|
+
* A ``setter`` has been added to ``SuitabilityCriteria`` attributes (issue `#84 <https://github.com/baptistehamon/lsapy/issues/84>`_, PR `#87 <https://github.com/baptistehamon/lsapy/issues/87>`_).
|
|
26
|
+
* The ``lsapy.standardize`` module has been added with categorical and membership standardization functions (issue `#89 <https://github.com/baptistehamon/lsapy/issues/89>`_, PR `#91 <https://github.com/baptistehamon/lsapy/issues/91>`_).
|
|
27
|
+
* The ``SuitabilityFunction`` is not longer required to define the standardization function in ``SuitabilityCriteria`` (issue `#89 <https://github.com/baptistehamon/lsapy/issues/89>`_, PR `#91 <https://github.com/baptistehamon/lsapy/issues/91>`_).
|
|
28
|
+
* ``SuitabilityCriteria.name`` is now a property of the class (PR `#97 <https://github.com/baptistehamon/lsapy/issues/97>`_).
|
|
29
|
+
* The ``LandSuitabilityAnalysis`` properties have been properly defined (PR `#98 <https://github.com/baptistehamon/lsapy/issues/98>`_).
|
|
30
|
+
* The API Reference documentation has been updated and improved (issue `#96 <https://github.com/baptistehamon/lsapy/issues/96>`_, PR `#99 <https://github.com/baptistehamon/lsapy/issues/99>`_).
|
|
31
|
+
|
|
32
|
+
Breaking changes
|
|
33
|
+
^^^^^^^^^^^^^^^^
|
|
34
|
+
* The ``lsapy.statistics`` module has been renamed to ``lsapy.stats`` (PR `#71 <https://github.com/baptistehamon/lsapy/pull/71>`_).
|
|
35
|
+
* The ``lsapy.core.aggregation`` has been moved and renamed to ``lsapy.aggregate`` (PR `#71 <https://github.com/baptistehamon/lsapy/pull/71>`_).
|
|
36
|
+
* The ``statistical_summary`` function has been renamed to ``stats_summary`` (PR `#82 <https://github.com/baptistehamon/lsapy/pull/82>`_).
|
|
37
|
+
* The ``spatial_statistical_summary`` function has been renamed to ``spatial_stats_summary`` (PR `#82 <https://github.com/baptistehamon/lsapy/pull/82>`_).
|
|
38
|
+
* The ``lsapy.functions`` module as well as ``SuitabilityFunction`` have been marked as deprecated and will be removed in a future release (issue `#89 <https://github.com/baptistehamon/lsapy/issues/89>`_, PR `#91 <https://github.com/baptistehamon/lsapy/issues/91>`_).
|
|
39
|
+
|
|
40
|
+
Internal changes
|
|
41
|
+
^^^^^^^^^^^^^^^^
|
|
42
|
+
* The name and year in the license file have been updated (PR `#76 <https://github.com/baptistehamon/lsapy/pull/76>`_).
|
|
43
|
+
* The logo has been updated (PR `#80 <https://github.com/baptistehamon/lsapy/pull/80>`_).
|
|
44
|
+
* Tests have been added for the ``lsapy.stats`` module functions (PR `#82 <https://github.com/baptistehamon/lsapy/pull/82>`_).
|
|
45
|
+
* The README file has been updated integrating new standardization function workflow (issue `#92 <https://github.com/baptistehamon/lsapy/issues/92>`_, PR `#93 <https://github.com/baptistehamon/lsapy/issues/93>`_).
|
|
46
|
+
|
|
47
|
+
Bug fixes
|
|
48
|
+
^^^^^^^^^
|
|
49
|
+
* Fix small issue of ``SuitabilityCriteria`` string representation (PR `#73 <https://github.com/baptistehamon/lsapy/pull/73>`_).
|
|
50
|
+
|
|
5
51
|
v0.2.0 (2025-08-20)
|
|
6
52
|
-------------------
|
|
7
53
|
Contributor to this version: Baptiste Hamon (@baptistehamon).
|
|
@@ -86,7 +132,7 @@ Breaking changes
|
|
|
86
132
|
Internal changes
|
|
87
133
|
^^^^^^^^^^^^^^^^
|
|
88
134
|
* Templates for requesting new features, asking question and submitting PR have been added (issue `#11 <https://github.com/baptistehamon/lsapy/issues/11>`_, PR `#12 <https://github.com/baptistehamon/lsapy/pull/12>`_).
|
|
89
|
-
* The README has been updated to make links permanent and to add a docs badge (PR `#13 <https://github.com/baptistehamon/lsapy/pull/13>`_
|
|
135
|
+
* The README has been updated to make links permanent and to add a docs badge (PR `#13 <https://github.com/baptistehamon/lsapy/pull/13>`_).
|
|
90
136
|
* A configuration file for Zenodo integration has been added to the repository (PR `#14 <https://github.com/baptistehamon/lsapy/pull/14>`_).
|
|
91
137
|
* `Pre-commit` has been setup and `ruff`, `codespell` and `numpydoc` hooks have been added (issue `#8 <https://github.com/baptistehamon/lsapy/issues/8>`_, PR `#18 <https://github.com/baptistehamon/lsapy/pull/18>`_/PR `#19 <https://github.com/baptistehamon/lsapy/pull/19>`_).
|
|
92
138
|
* The autoupdate schedule of `pre-commit` has been set to weekly (PR `#21 <https://github.com/baptistehamon/lsapy/pull/21>`_)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lsapy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: A Python package for Land Suitability Analysis.
|
|
5
5
|
Keywords: LSAPy,Land Suitability Analysis,Geospatial Analysis,GIS,Geography
|
|
6
6
|
Author-email: Baptiste Hamon <baptiste.hamon@pg.canterbury.ac.nz>
|
|
@@ -73,8 +73,8 @@ Provides-Extra: docs
|
|
|
73
73
|
:alt: LSAPy Logo
|
|
74
74
|
|
|
75
75
|
LSAPy: Land Suitability Analysis in Python
|
|
76
|
-
|
|
77
|
-
|pypi| |python-versions| |status| |testing| |coverage| |ruff| |pre-commit| |docs| |question| |zenodo|
|
|
76
|
+
==========================================
|
|
77
|
+
|pypi| |conda| |python-versions| |status| |testing| |coverage| |ruff| |pre-commit| |docs| |question| |zenodo|
|
|
78
78
|
|
|
79
79
|
`LSAPy` stands for Land Suitability Analysis (LSA) in Python. Its objective is to make conducting
|
|
80
80
|
LSA in Python easier and more accessible to users. It provides a set of objects built around
|
|
@@ -83,37 +83,39 @@ LSA in Python easier and more accessible to users. It provides a set of objects
|
|
|
83
83
|
.. _`xarray`: https://xarray.pydata.org/en/stable/
|
|
84
84
|
|
|
85
85
|
Quick Start
|
|
86
|
-
|
|
86
|
+
-----------
|
|
87
87
|
To install `LSAPy`, you can use `pip`:
|
|
88
88
|
|
|
89
89
|
.. code-block:: shell
|
|
90
90
|
|
|
91
91
|
pip install lsapy
|
|
92
92
|
|
|
93
|
+
or `conda`:
|
|
94
|
+
|
|
95
|
+
.. code-block:: shell
|
|
96
|
+
|
|
97
|
+
conda install -c conda-forge lsapy
|
|
93
98
|
|
|
94
99
|
You can now perform your LSA:
|
|
95
100
|
|
|
96
101
|
.. code-block:: python
|
|
97
102
|
|
|
98
103
|
# import modules
|
|
99
|
-
from lsapy import LandSuitabilityAnalysis, SuitabilityCriteria
|
|
104
|
+
from lsapy import LandSuitabilityAnalysis, SuitabilityCriteria
|
|
100
105
|
|
|
101
106
|
# define your criteria
|
|
102
107
|
criteria = {
|
|
103
108
|
"crit1": SuitabilityCriteria(
|
|
104
109
|
name="criteria1",
|
|
105
110
|
indicator=indicator1, # xarray object
|
|
106
|
-
func=
|
|
107
|
-
|
|
108
|
-
),
|
|
111
|
+
func="function_name",
|
|
112
|
+
fparams={"param1": value1, "param2": value2},
|
|
109
113
|
),
|
|
110
114
|
"crit2": SuitabilityCriteria(
|
|
111
115
|
name="criteria2",
|
|
112
116
|
indicator=indicator2, # xarray object
|
|
113
|
-
func=
|
|
114
|
-
|
|
115
|
-
params={"param1": value1, "param2": value2},
|
|
116
|
-
),
|
|
117
|
+
func="another_function_name",
|
|
118
|
+
fparams={"param1": value1, "param2": value2},
|
|
117
119
|
),
|
|
118
120
|
# add all necessary criteria
|
|
119
121
|
}
|
|
@@ -182,6 +184,10 @@ The Python package has been created following the `pyOpenSci Guidebook`_.
|
|
|
182
184
|
:target: https://pypi.python.org/pypi/lsapy
|
|
183
185
|
:alt: Python Package Index Build
|
|
184
186
|
|
|
187
|
+
.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/lsapy
|
|
188
|
+
:target: https://anaconda.org/conda-forge/lsapy
|
|
189
|
+
:alt: Conda Version
|
|
190
|
+
|
|
185
191
|
.. |status| image:: https://www.repostatus.org/badges/latest/active.svg
|
|
186
192
|
:target: https://www.repostatus.org/#active
|
|
187
193
|
:alt: Project Status: Active - The project has reached a stable, usable state and is being actively developed.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
:alt: LSAPy Logo
|
|
7
7
|
|
|
8
8
|
LSAPy: Land Suitability Analysis in Python
|
|
9
|
-
|
|
10
|
-
|pypi| |python-versions| |status| |testing| |coverage| |ruff| |pre-commit| |docs| |question| |zenodo|
|
|
9
|
+
==========================================
|
|
10
|
+
|pypi| |conda| |python-versions| |status| |testing| |coverage| |ruff| |pre-commit| |docs| |question| |zenodo|
|
|
11
11
|
|
|
12
12
|
`LSAPy` stands for Land Suitability Analysis (LSA) in Python. Its objective is to make conducting
|
|
13
13
|
LSA in Python easier and more accessible to users. It provides a set of objects built around
|
|
@@ -16,37 +16,39 @@ LSA in Python easier and more accessible to users. It provides a set of objects
|
|
|
16
16
|
.. _`xarray`: https://xarray.pydata.org/en/stable/
|
|
17
17
|
|
|
18
18
|
Quick Start
|
|
19
|
-
|
|
19
|
+
-----------
|
|
20
20
|
To install `LSAPy`, you can use `pip`:
|
|
21
21
|
|
|
22
22
|
.. code-block:: shell
|
|
23
23
|
|
|
24
24
|
pip install lsapy
|
|
25
25
|
|
|
26
|
+
or `conda`:
|
|
27
|
+
|
|
28
|
+
.. code-block:: shell
|
|
29
|
+
|
|
30
|
+
conda install -c conda-forge lsapy
|
|
26
31
|
|
|
27
32
|
You can now perform your LSA:
|
|
28
33
|
|
|
29
34
|
.. code-block:: python
|
|
30
35
|
|
|
31
36
|
# import modules
|
|
32
|
-
from lsapy import LandSuitabilityAnalysis, SuitabilityCriteria
|
|
37
|
+
from lsapy import LandSuitabilityAnalysis, SuitabilityCriteria
|
|
33
38
|
|
|
34
39
|
# define your criteria
|
|
35
40
|
criteria = {
|
|
36
41
|
"crit1": SuitabilityCriteria(
|
|
37
42
|
name="criteria1",
|
|
38
43
|
indicator=indicator1, # xarray object
|
|
39
|
-
func=
|
|
40
|
-
|
|
41
|
-
),
|
|
44
|
+
func="function_name",
|
|
45
|
+
fparams={"param1": value1, "param2": value2},
|
|
42
46
|
),
|
|
43
47
|
"crit2": SuitabilityCriteria(
|
|
44
48
|
name="criteria2",
|
|
45
49
|
indicator=indicator2, # xarray object
|
|
46
|
-
func=
|
|
47
|
-
|
|
48
|
-
params={"param1": value1, "param2": value2},
|
|
49
|
-
),
|
|
50
|
+
func="another_function_name",
|
|
51
|
+
fparams={"param1": value1, "param2": value2},
|
|
50
52
|
),
|
|
51
53
|
# add all necessary criteria
|
|
52
54
|
}
|
|
@@ -115,6 +117,10 @@ The Python package has been created following the `pyOpenSci Guidebook`_.
|
|
|
115
117
|
:target: https://pypi.python.org/pypi/lsapy
|
|
116
118
|
:alt: Python Package Index Build
|
|
117
119
|
|
|
120
|
+
.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/lsapy
|
|
121
|
+
:target: https://anaconda.org/conda-forge/lsapy
|
|
122
|
+
:alt: Conda Version
|
|
123
|
+
|
|
118
124
|
.. |status| image:: https://www.repostatus.org/badges/latest/active.svg
|
|
119
125
|
:target: https://www.repostatus.org/#active
|
|
120
126
|
:alt: Project Status: Active - The project has reached a stable, usable state and is being actively developed.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
===================
|
|
2
|
+
SuitabilityCriteria
|
|
3
|
+
===================
|
|
4
|
+
|
|
5
|
+
A ``SuitabilityCriteria`` object represents a single criterion used in land suitability analysis. It encapsulates the necessary information
|
|
6
|
+
to evaluate the suitability of land based on a specific indicator and standardization function.
|
|
7
|
+
|
|
8
|
+
.. currentmodule:: lsapy
|
|
9
|
+
|
|
10
|
+
.. autosummary::
|
|
11
|
+
:toctree: generated/
|
|
12
|
+
|
|
13
|
+
SuitabilityCriteria
|
|
14
|
+
|
|
15
|
+
Methods
|
|
16
|
+
-------
|
|
17
|
+
|
|
18
|
+
.. autosummary::
|
|
19
|
+
:toctree: generated/
|
|
20
|
+
|
|
21
|
+
SuitabilityCriteria.compute
|
|
22
|
+
|
|
23
|
+
Attributes
|
|
24
|
+
----------
|
|
25
|
+
|
|
26
|
+
.. autosummary::
|
|
27
|
+
:toctree: generated/
|
|
28
|
+
|
|
29
|
+
SuitabilityCriteria.func
|
|
30
|
+
SuitabilityCriteria.indicator
|
|
31
|
+
SuitabilityCriteria.category
|
|
32
|
+
SuitabilityCriteria.weight
|
|
33
|
+
SuitabilityCriteria.is_computed
|
|
34
|
+
SuitabilityCriteria.attrs
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
==========
|
|
2
|
+
Deprecated
|
|
3
|
+
==========
|
|
4
|
+
|
|
5
|
+
.. warning::
|
|
6
|
+
|
|
7
|
+
The functions listed on this page are deprecated and will be removed in future versions of LSAPy.
|
|
8
|
+
Users are advised to transition to the recommended alternatives as specified in the documentation for each function.
|
|
9
|
+
|
|
10
|
+
.. currentmodule:: lsapy
|
|
11
|
+
.. autosummary::
|
|
12
|
+
:toctree: generated/
|
|
13
|
+
|
|
14
|
+
SuitabilityFunction
|
|
15
|
+
|
|
16
|
+
.. autosummary::
|
|
17
|
+
:toctree: generated/
|
|
18
|
+
|
|
19
|
+
functions.boolean
|
|
20
|
+
functions.discrete
|
|
21
|
+
functions.logistic
|
|
22
|
+
functions.sigmoid
|
|
23
|
+
functions.vetharaniam2022_eq3
|
|
24
|
+
functions.vetharaniam2022_eq5
|
|
25
|
+
functions.vetharaniam2024_eq8
|
|
26
|
+
functions.vetharaniam2024_eq10
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
=======================
|
|
2
|
+
LandSuitabilityAnalysis
|
|
3
|
+
=======================
|
|
4
|
+
|
|
5
|
+
The `LandSuitabilityAnalysis` is the top-level class in LSAPy and defines the LSA framework.
|
|
6
|
+
|
|
7
|
+
.. currentmodule:: lsapy
|
|
8
|
+
|
|
9
|
+
.. autosummary::
|
|
10
|
+
:toctree: generated/
|
|
11
|
+
|
|
12
|
+
LandSuitabilityAnalysis
|
|
13
|
+
|
|
14
|
+
Methods
|
|
15
|
+
-------
|
|
16
|
+
.. autosummary::
|
|
17
|
+
:toctree: generated/
|
|
18
|
+
|
|
19
|
+
LandSuitabilityAnalysis.run
|
|
20
|
+
|
|
21
|
+
Attributes
|
|
22
|
+
----------
|
|
23
|
+
.. autosummary::
|
|
24
|
+
:toctree: generated/
|
|
25
|
+
|
|
26
|
+
LandSuitabilityAnalysis.land_use
|
|
27
|
+
LandSuitabilityAnalysis.criteria
|
|
28
|
+
LandSuitabilityAnalysis.data
|
|
29
|
+
LandSuitabilityAnalysis.category
|
|
30
|
+
LandSuitabilityAnalysis.criteria_by_category
|
|
31
|
+
LandSuitabilityAnalysis.weights_by_category
|
|
32
|
+
LandSuitabilityAnalysis.attrs
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Criteria Aggregation
|
|
36
|
+
--------------------
|
|
37
|
+
|
|
38
|
+
The underlying criteria aggregation method used in ``LandSuitabilityAnalysis.run`` is implemented in the `aggregate` module.
|
|
39
|
+
|
|
40
|
+
.. autosummary::
|
|
41
|
+
:toctree: generated/
|
|
42
|
+
|
|
43
|
+
aggregate.aggregate
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
=========================
|
|
2
|
+
Standardization Functions
|
|
3
|
+
=========================
|
|
4
|
+
|
|
5
|
+
The ``lsapy.standardize`` module provides various standardization functions to transform raw input data into standardized suitability scores.
|
|
6
|
+
These functions can be broadly categorized into discrete, sigmoid-like, and Gaussian-like standardization.
|
|
7
|
+
|
|
8
|
+
.. currentmodule:: lsapy.standardize
|
|
9
|
+
|
|
10
|
+
Discrete Standardization
|
|
11
|
+
------------------------
|
|
12
|
+
.. autosummary::
|
|
13
|
+
:toctree: generated/
|
|
14
|
+
|
|
15
|
+
boolean
|
|
16
|
+
discrete
|
|
17
|
+
|
|
18
|
+
Sigmoid-like Standardization
|
|
19
|
+
----------------------------
|
|
20
|
+
|
|
21
|
+
.. autosummary::
|
|
22
|
+
:toctree: generated/
|
|
23
|
+
|
|
24
|
+
logistic
|
|
25
|
+
sigmoid
|
|
26
|
+
vetharaniam2022_eq3
|
|
27
|
+
vetharaniam2022_eq5
|
|
28
|
+
|
|
29
|
+
Gaussian-like Standardization
|
|
30
|
+
-----------------------------
|
|
31
|
+
|
|
32
|
+
.. autosummary::
|
|
33
|
+
:toctree: generated/
|
|
34
|
+
|
|
35
|
+
vetharaniam2024_eq8
|
|
36
|
+
vetharaniam2024_eq10
|
|
37
|
+
|
|
38
|
+
Helper Functions
|
|
39
|
+
----------------
|
|
40
|
+
|
|
41
|
+
.. autosummary::
|
|
42
|
+
:toctree: generated/
|
|
43
|
+
|
|
44
|
+
fit
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
===================
|
|
2
|
+
Statistical Summary
|
|
3
|
+
===================
|
|
4
|
+
|
|
5
|
+
This module provides functions to compute statistics summaries of Land Suitability Analysis results.
|
|
6
|
+
|
|
7
|
+
.. currentmodule:: lsapy.stats
|
|
8
|
+
|
|
9
|
+
.. autosummary::
|
|
10
|
+
:toctree: generated/
|
|
11
|
+
|
|
12
|
+
stats_summary
|
|
13
|
+
spatial_stats_summary
|
lsapy-0.3.1/docs/api.rst
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
=============
|
|
2
|
+
API Reference
|
|
3
|
+
=============
|
|
4
|
+
|
|
5
|
+
This page provides an overview of all functions, modules, objects implemented in LSAPy.
|
|
6
|
+
|
|
7
|
+
.. toctree::
|
|
8
|
+
:maxdepth: 1
|
|
9
|
+
|
|
10
|
+
api/standardize
|
|
11
|
+
api/criteria
|
|
12
|
+
api/lsa
|
|
13
|
+
api/stats
|
|
14
|
+
api/utils
|
|
15
|
+
api/deprecated
|
|
@@ -8,13 +8,17 @@ Installation
|
|
|
8
8
|
.. _PyPI: https://pypi.org/project/laspy/
|
|
9
9
|
.. _conda-forge: https://conda-forge.org/
|
|
10
10
|
|
|
11
|
-
To install `LSAPy` from `PyPI`_
|
|
11
|
+
To install `LSAPy` from `PyPI`_ using `pip`:
|
|
12
12
|
|
|
13
13
|
.. code-block:: shell
|
|
14
14
|
|
|
15
15
|
pip install lsapy
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
or from `conda-forge`_ using `conda`:
|
|
18
|
+
|
|
19
|
+
.. code-block:: shell
|
|
20
|
+
|
|
21
|
+
conda install -c conda-forge lsapy
|
|
18
22
|
|
|
19
23
|
Land Suitability Analysis (LSA)
|
|
20
24
|
-------------------------------
|
|
Binary file
|