Satellite Imagery¶
In [ ]:
Copied!
from rasvec import tms_to_geotiff
from rasterio.plot import show
import rasterio as rio
from rasvec import tms_to_geotiff
from rasterio.plot import show
import rasterio as rio
In [2]:
Copied!
download_kwargs = {
'output': 'output.tif',
'bbox':[78.815113, 23.451419,78.822098, 23.447128],
'source': 'satellite',
'zoom': 18
}
download_kwargs = {
'output': 'output.tif',
'bbox':[78.815113, 23.451419,78.822098, 23.447128],
'source': 'satellite',
'zoom': 18
}
In [3]:
Copied!
tms_to_geotiff(**download_kwargs)
tms_to_geotiff(**download_kwargs)
Downloaded image 01/24 Downloaded image 02/24 Downloaded image 03/24 Downloaded image 04/24 Downloaded image 05/24 Downloaded image 06/24 Downloaded image 07/24 Downloaded image 08/24 Downloaded image 09/24 Downloaded image 10/24 Downloaded image 11/24 Downloaded image 12/24 Downloaded image 13/24 Downloaded image 14/24 Downloaded image 15/24 Downloaded image 16/24 Downloaded image 17/24 Downloaded image 18/24 Downloaded image 19/24 Downloaded image 20/24 Downloaded image 21/24 Downloaded image 22/24 Downloaded image 23/24 Downloaded image 24/24 Saving GeoTIFF. Please wait... Image saved to output.tif
In [ ]:
Copied!
img = rio.open('output.tif')
show(img)
img = rio.open('output.tif')
show(img)
Out[ ]:
<Axes: >