Giter Club home page Giter Club logo

panbiotracks's Introduction

Panbiotracks

A program to do tracks analysis, Léon Croizat's geometrical approach to biogeography (Croizat, 1958). Currently, it can build individual tracks, internal generalized tracks and generalized nodes, as described in the accompanying article (in development).

It has three main functions:

  • It builds an individual track from a list of locations in a comma-separated file (CSV) and saves the result to an ESRI shape file (SHP).
  • It builds an internal generalized track (IGT) from a set of individual tracks and saves the result to an ESRI shape file (SHP).
  • It identifies the intersections between a set of generalized tracks and marks each one as a node, then saves the result to an ESRI shape file (SHP).

Download and installation

Panbiotracks is a self-contained executable that can be run as is, without installing it. To get it, go to the Releases page and download the right file according to your operating system. If the file is in compressed format, unpack it before use.

Once downloaded, go to the directory where you saved the executable and open it from a terminal window, like GNOME terminal or Windows PowerShell. Please refer to the Wiki for a more detailed explanation and usage examples.

Basic usage

panbiotracks -m MODE -i INPUT_FILE(S) -o OUTPUT_FILE_OR_DIRECTORY

To see the basic help, type:

panbiotracks -h

Input files

Individual tracks

A comma-separated file (CSV) with three columns/headers: species, lat and lon, in that order. A single file can contain data from multiple species. Latitude and longitude data must be in decimal degrees.

species,lat,lon
Pinus arizonica,24.983,-105.883
Pinus arizonica,23.423,-104.26
Pinus aristata,36.2942,-105.246
Pinus aristata,38.183333,-106.207222

Internal generalized tracks

A set of SHP files, each one containing an individual track. There must be at least two of them, separated by a space:

/home/user/shapefile1.shp /home/user/shapefile2.shp

The file paths can be relative or absolute.

Nodes

A set of SHP files, each one containing an internal generalized track. There must be at least two of them, separated by a space. The file paths can be relative or absolute.

Individual Tracks

panbiotracks -m I -i [LIST_OF_SPECIES_LOCATIONS.csv] -o [OUTPUT_DIRECTORY]

Where LIST_OF_SPECIES_LOCATIONS.csv is a single CSV file with a list of species locations represented by a pair of coordinates, like specified in "Input files". OUTPUT_DIRECTORY is the name of the directory (folder) where the SHP output files will be saved. This directory can be an existing one or you can write a new name, in which case Panbiotracks will create a new directory with that name. If there are data of multiple species in the input CSV file, Panbiotracks will generate a SHP file for each of them, named after the data present in the species column.

Internal Generalized Tracks

panbiotracks -m P -i [FILE_1.shp] [FILE_2.shp] [FILE_N.shp] -o [OUTPUT_FILE]

Where FILE_n.shp are the ESRI shape files that contain the individual tracks that will be used to build the internal generalized track. OUTPUT_FILE is the name of the output SHP file, without file extension.

Panbiogeographic Nodes

panbiotracks -m N -i [FILE_1.shp] [FILE_2.shp] [FILE_N.shp] -o [OUTPUT_FILE]

Where FILE_n.shp are the ESRI shape files that contain the tracks that will be used to build the shape file where the nodes will be saved. OUTPUT_FILE is the name of the output SHP file, without file extension.

To do

  • Refactor the program to generate generalized tracks and nodes that are more faithful to their formal definition.
  • Improve speed and usability.
  • Improve the algorithms used.
  • Add GeoJSON as an alternative save file format.

References

  • Croizat, L.1958. Panbiogeography. Vols. 1 y 2. Published by the author, Caracas.

Acknowledgements

This program was made as a fulfillment of the author for obtaining a M.Sc. degree in the Posgrado en Ciencias Biológicas, Universidad Nacional Autónoma de México, Mexico. The author thanks the Consejo Nacional de Humanidades, Ciencias y Tecnologías (CONAHCyT) for the support of this research through a graduate scholarship.

How to cite

The accompanying paper is currently in process of revision and waiting to be published.

panbiotracks's People

Contributors

cfnnmcg avatar

Watchers

 avatar

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.