<s> from pprint import pprint <EOL> import rasterio <EOL> import numpy as np <EOL> path = "<STR_LIT>" <EOL> with rasterio . open ( path ) as src : <EOL> array = src . read ( ) <EOL> stats = [ ] <EOL> for band in array : <EOL> stats . append ( { <EOL> '<STR_LIT>' : band . min ( ) , <EOL> '<STR_LIT>' : band . mean ( ) , <EOL> '<STR_LIT>' : np . median ( band ) , <EOL> '<STR_LIT>' : band . max ( ) } ) <EOL> pprint ( stats ) </s>
