Skip to content

Commit

Permalink
feat: spatial signature analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Feb 13, 2025
1 parent 3bbd673 commit b70b3ca
Show file tree
Hide file tree
Showing 7 changed files with 979 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Open-source library to compute landscape metrics in the Python ecosystem (NumPy,
spatiotemporal
zonal
spatiotemporal-zonal
spatial-signature-analysis

.. toctree::
:maxdepth: 1
Expand Down
6 changes: 6 additions & 0 deletions docs/spatial-signature-analysis.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
==========================
Spatial signature analysis
==========================

.. autoclass:: pylandstats.SpatialSignatureAnalysis
:members: __init__, decompose, get_loading_df, get_cgram, scatterplot_cluster_metrics, plot_cluster_landscapes, plot_cluster_zones
1 change: 1 addition & 0 deletions pylandstats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""pylandstats init."""

from pylandstats.landscape import *
from pylandstats.spatial_signature import *
from pylandstats.spatiotemporal import *
from pylandstats.zonal import *

Expand Down
5 changes: 5 additions & 0 deletions pylandstats/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from os import environ

from sklearn import decomposition, preprocessing

try:
import dotenv

Expand Down Expand Up @@ -74,3 +76,6 @@
DEFAULT_LANDSCAPE_NODATA = 0
DEFAULT_NEIGHBORHOOD_RULE = "8"
CLASS_METRICS_DF_FILLNA = True
DEFAULT_PREPROCESSOR = preprocessing.StandardScaler
DEFAULT_DECOMPOSER = decomposition.PCA
DEFAULT_K_RANGE = range(2, 8)
Loading

0 comments on commit b70b3ca

Please sign in to comment.