why is my geotif bands of landsat8 is read as all zeros in python rasterio?

40 Views Asked by At
band3 = rasterio.open("/..../band3.TIF")
band6 = rasterio.open("/...../band6.TIF")

red = band3.read().astype('float')
swir = band6.read().astype('float')

When i try to print out after reading the values of either red or swir or even band3/band6 itself all that i get is an array of zeros. can anyone help me understand whats going on.

I tried the above code and was expecting an array with valid ranger rather than all zeros

0

There are 0 best solutions below