Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with rasterio.drivers():
- # Read raster bands directly to numpy arrays
- with rasterio.open(dir_inp + os.sep + 'test.tif') as src:
- num_bands = src.count
- arr = src.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement