Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import osgeo
  2. from osgeo import gdal#gdal, data conversion tool
  3. from matplotlib import pyplot as plt
  4. import sys
  5. import numpy as np#for reading numbers in python
  6. b8a= gdal.Open('C:\Users\zack\GIS PROGRAMMINGWORKS\LC08_L1TP_168061_20171228_20180103_01_T1_B5.tiff')
  7. b4= gdal.Open('C:\Userszack\GIS PROGRAMMINGWORKS\LC08_L1TP_168061_20171228_20180103_01_T1_B4.tiff')
  8. d8a = b8a.GetRasterBand(1)
  9. d4 = b4.GetRasterBand(1)
  10.  
  11. AttributeError Traceback (most recent call last)
  12. <ipython-input-22-cb1cfc43017d> in <module>
  13. ----> 1 d8a = b8a.GetRasterBand(1)
  14. 2 d4 = b4.GetRasterBand(1)
  15. AttributeError: 'NoneType' object has no attribute 'GetRasterBand'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement