Git Product home page Git Product logo

pyfia's Introduction

#How to install and run pyFIA.

pyFIA has been developed and tested in GNU/Linux Debian and Ubuntu distributions. These instructions explain how to use it in these environments.

##Installation##

Firstly, we have to install some libreries and tools that can be found in repositories. In a terminal, type:

sudo aptitude install python-numpy ipython python-matplotlib python-scipy python-dev python-setuptools python-all python-all-dev

For 'pymorph' and 'mahotas' can be installed using 'pip'. To install pip:

sudo aptitude install python-pip

And install this packages with 'pip':

sudo pip install pymorph

sudo pip install mahotas

Then we can check the installation by typing the following commands in Python's interactive shell:

import mahotas
import scipy
dna = scipy.misc.pilutil.imread('./file.tif')
T = mahotas.thresholding.otsu(dna)
print T

##Running##

Sample files must have .txt, .tif or .jpg extension to be found by pyFIA.

You can download the source code from the repository using::

git clone https://github.com/fjruizruano/pyfia.git

You can execute pyFIA with:

python pyfia.py

python pyfia_area.py

You must provide the path of the files to pyFIA. If they are in the same folder that the script, you can just type ".". The script will also analyse the subfolders and store the result in a text file called "output".

The resulting files can open with Gnumeric or other spreadsheet software.

pyfia's People

Contributors

fjruizruano avatar jllopezpino avatar

Watchers

James Cloos avatar

Forkers

jllopezpino

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.