mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
11 lines
254 B
Python
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
|
|
|