svHatch / raster_max

Example script to find the index of maximum values in a raster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raster_max

Example script to find the indices of maximum values in a raster. The script uses Python, and requires the "osgeo" and "numpy" packages.

Installation

Dependencies

This script requires Python2.7 to be installed, and to have the modules "osgeo" and "numpy" installed so that Python2.7 can find them.

Install Python2.7: https://www.python.org/download/releases/2.7/ Install osgeo: "pip install osgeo" (or the package manager of your choice) Install numpy: "pip install numpy"

Once installed, open a command line and run the script on the example tiff raster found in this repository:

$ python raster_max.py ./eg_raster.tif

About

Example script to find the index of maximum values in a raster

License:GNU General Public License v3.0


Languages

Language:Python 100.0%