Skip to content

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

License

Notifications You must be signed in to change notification settings

svHatch/raster_max

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages