In [54]:
%matplotlib inline
import rasterio
import numpy as np
import matplotlib.pyplot as plt

In [55]:
path = "../data/GeoTIFF/seccion.tiff"
src = rasterio.open(path)
img = src.read(1)

In [56]:
plt.imshow(img, cmap='Paired')


Out[56]:
<matplotlib.image.AxesImage at 0x7fa59be43400>

In [53]:
img


Out[53]:
array([[255, 255, 255, ..., 255, 255, 255],
       [255, 255, 255, ..., 255, 255, 255],
       [255, 255, 255, ..., 255, 255, 255],
       ..., 
       [255, 255, 255, ..., 255, 255, 255],
       [255, 255, 255, ..., 255, 255, 255],
       [255, 255, 255, ..., 255, 255, 255]], dtype=uint8)

In [ ]: