Skip to content

A simple tool for preparation of your data to use with Mapflow API or QGIS Plugin

License

Notifications You must be signed in to change notification settings

Geoalert/mapflow_data_preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a script for the preparation of data for Mapflow plugin

The mapflow models require 8-bit RBG images. The preprocessing of the 16-bit and\or multispectal data can be carried out with your own tools, but we recommend to use our script for better results.

Requirements

Python 3.4

Installation

  • Clone or download this repository
  • Open terminal in its folder and run
pip install -r requirements.txt

Running

python to8bit.py {{input}} {{output}} [--channels {R G B}]

input, output - absolute or relative paths to input and output tif files --channels - optional argument to specify the R,G,B channel positions in the file. Defaults to 1 2 3 Example, running the data preprocessing for multispectral image where red is channel 4, green - channel 3, blue - channel 2:

python to8bit.py ./input.tif ./output.tif --channels 4 3 2

About

A simple tool for preparation of your data to use with Mapflow API or QGIS Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages