Skip to main content

A Python package to create neutral landscape models

Project description

NLMpy

NLMpy is a Python package for the creation of neutral landscape models that are widely used by landscape ecologists to model ecological patterns across landscapes. NLMpy can create both continuous patterns to represent landscape characteristics such as elevation or moisture gradients, or categorical patterns to represent landscape characteristics such as vegetation patches or land parcel boundaries.

NLMpy aims to:

  • be open-source so it can be easily adapted or developed for specific modelling requirements.
  • be cross-platform it can be used on any computer system.
  • bring together a wide range of neutral landscape model algorithms.
  • be easily integrated with geographic information system data.
  • enable novel combinations and integrations of different neutral landscape model algorithms.

A full description of the package can be found in the accompanying software paper.

Quick examples

All the NLMpy neutral landscape models are produced as two-dimensional NumPy arrays, so the results can be easily incorporated into broader Python workflows.

Using NLMpy to create a midpoint displacement neutral landscape model can be achieved with only two lines of code:

from nlmpy import nlmpy
nlm = nlmpy.mpd(nRow=50, nCol=50, h=0.75)

But as described in the software paper a wide variety of different patterns can be produced:

Citation

If you use NLMpy in your research we would be very grateful if you could please cite the software using the following freely available software paper:

Etherington TR, Holland EP, O'Sullivan D (2015) NLMpy: a Python software package for the creation of neutral landscape models within a general numerical framework. Methods in Ecology and Evolution 6:164-168

Installation

NLMpy is available on the Python Package Index, so it can be installed using:

pip install nlmpy

If that does not work you could also simply move the NLMpy.py file to the same location on your computer as a Python script that wants to import NLMpy, then when those scripts are executed they will import all the NLMpy functions. So while this approach does not actually install NLMpy onto your computer, it does at least allow you to make use of the functionality of NLMpy within a neighbouring Python script.

Package dependencies

  • numpy
  • scipy
  • numba

Community guidelines

We very much welcome input from others! If you find a bug, need some help, or can think of some extra functionality that would be useful, please raise an issue. Better still, please feel free to fork the project and raise a pull request if you think and can fix a bug, clarify the documentation, or improve the functionality yourself.

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

nlmpy-1.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

nlmpy-1.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file nlmpy-1.1.0.tar.gz.

File metadata

  • Download URL: nlmpy-1.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for nlmpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fa4a3bdbd9df53e91dd4b1d4527db16718a1d051f00928cf5fc8fd0d31323f44
MD5 86544fbac2f22c01492f929cdc00816f
BLAKE2b-256 1f0d873329b7f5328b938a2e55d153519caa3c3b2d4b1331c4fbdf9d2b6a5bda

See more details on using hashes here.

File details

Details for the file nlmpy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nlmpy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for nlmpy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d8c0da9c4fad02bb0298b93dc497902c5e25869f6acbeb93734ba2a603a0ed8
MD5 9ad277f6fe812ac4ae587f889107fb7d
BLAKE2b-256 2f639122f50e72bfb7118b3bf0578a7f6efca4aed7a51da44ee14aec0065a4de

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