Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 600 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 600 Bytes

tiffstats

DOI

tiffstats is a Python script for computing pixels statistics from a TIFF image over shapefile features

Usage

import tiffstats

tiffstats.tiff_AOIs_from_shp(image_path, shapefile_path, results_dir) # writes a tiff for each feature/AOI in shapefile
tiffstats.compute_statistics(AOI_paths, results_dir, band_index, no_data_value) # computes pixel stats for each AOI tiff

Contributing

Pull requests are welcome.

License

MIT