Note
Click here to download the full example code
SatelliteImage class basics
This is (right now) a dummy example for showing the functionality of geoutils.SatelliteImage.
import matplotlib.pyplot as plt
import geoutils as gu
Example raster:
img = gu.Raster(gu.datasets.get_path("landsat_B4_crop"))
Info:
print(img)
Out:
Driver: GTiff
Opened from file: /home/docs/checkouts/readthedocs.org/user_builds/geoutils-erikm/envs/docs-backend/lib/python3.7/site-packages/geoutils/datasets/LE71400412000304SGS00_B4_crop2.TIF
Filename: /home/docs/checkouts/readthedocs.org/user_builds/geoutils-erikm/envs/docs-backend/lib/python3.7/site-packages/geoutils/datasets/LE71400412000304SGS00_B4_crop2.TIF
Raster modified since disk load? False
Size: 726, 174
Number of bands: 1
Data types: ('uint8',)
Coordinate System: EPSG:32645
NoData Value: 0.0
Pixel Size: 30.0, 30.0
Upper Left Corner: 484060.0, 3098030.0
Lower Right Corner: 505840.0, 3103250.0
A plot:
img.show(cmap="Greys_r")
plt.show()

Total running time of the script: ( 0 minutes 0.193 seconds)