NichePy: a collection of Python scripts for estimating overlap of ecological niche and species distribution models.
Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


    NichePy version 1.1


    $ git clone
    $ sudo python3 install

    If python3 -V < 3.2 choose option 2 else option 1


    To download a zip archive of the NichePy repository:

    To download a tar.gz archive of the NichePy repository:


    $ git clone

    This will download the contents of the NichePy repository into
    a folder called NichePy.

    Prerequisite for this to work is that you install git if you 
    haven't already installed it on your machine 


    Refer to the MANUAL for additional details. In short, all
    Python scripts require Python version 3 (ideally >= 3.2).

    The functions required by NichePy scripts are contained in the module. In addition Python versions 3 < 3.2 require 
    the module. Simply run or keep these module 
    files in the same directory as the resampling scripts, and, and the 

    Included is an installation script that places a link from the
    location of the getMetric, nicheIdentity, and nicheBackground 
    scripts to the folder /usr/bin and makes the scripts executable.
    In addition, the nichefunc and/or argparse modules will be installed
    using Python's built-in installer.

    After running the installation script the scripts can be called from
    anywhere in the file-system hierarchy.

    To install using our installation script change to root (su root) and:

    $ python3 install

    or if you have sudo set up (default on Ubuntu and many other Linux

    $ sudo python3 install

    After installing the scripts using the scripts can be
    executed as follows:

    $ nicheIdentity
    $ nicheBackground
    $ getMetric

    If the scripts were not installed using use:

    $ python3 path/to/
    $ python3 path/to/
    $ python3 path/to/


    The folder Examples contains example occurrence data sets and models.
    Please refer to the README in the Example folder to learn more about 
    the input/output datastructure for NichePy.


    We included example batch scripts that show how ENMs/SDMs may be
    generated with OpenModeller or Maxent in batch mode. Also included 
    is a script that converts the output from nicheIdentity and/or
    nicheBackground into a format suitable as input for OpenModeller.

    In addition, we included the scripts we used to generate simple
    consensus models by averaging.


    We made every effort to track down and fix bugs in our scripts. If
    you discover what you believe to be a bug, please send an email to and/or

    If you have trouble using our scripts don't hesitate to contact us.

    Please include a brief description of the problem in the email that
    includes any messages that the scripts printed to the screen. Please
    also include (a subset) of the files you were trying to run the 
    scripts on, so that we can replicate the problem.

    Lastly, please include the version number of your Python installation 
    (type python -V or python3 -V in the shell) and Operating system in 
    your email to us.