rasterio/tests/test_band.py
2014-09-01 22:00:56 -06:00

11 lines
254 B
Python

import rasterio
def test_band():
with rasterio.open('tests/data/RGB.byte.tif') as src:
b = rasterio.band(src, 1)
assert b.ds == src
assert b.bidx == 1
assert b.dtype in src.dtypes
assert b.shape == src.shape