PyLandStats documentation!

Open-source Pythonic library to compute landscape metrics within the PyData stack (NumPy, pandas, matplotlib…)

Development:

This documentation is intended as an API reference. See also:

  • pylandstats-notebooks repository (tutorial/thorough overview of PyLandStats)
  • swiss-urbanization repository (example application of PyLandStats to evaluate the spatiotemporal patterns of urbanization in three Swiss urban agglomerations)

Features

  • Compute pandas DataFrames of landscape metrics at the patch, class and landscape level
  • Analyze the spatiotemporal evolution of landscapes
  • Analyze landscape changes accross environmental gradients

Using PyLandStats

To install use pip:

$ pip install pylandstats

If you want to use the BufferAnalysis class, you will need geopandas. The easiest way to install it is via conda-forge as in:

$ conda install -c conda-forge geopandas

and then install PyLandStats with the geo extras as in:

$ pip install pylandstats[geo]

Indices and tables