134 ee to geotiff
Download Earth Engine map tiles as a GeoTIFF
Uncomment the following line to install geemap if needed.
In [ ]:
Copied!
# !pip install -U geemap
# !pip install -U geemap
In [ ]:
Copied!
import ee
import geemap
import ee
import geemap
In [ ]:
Copied!
Map = geemap.Map()
point = ee.Geometry.Point(-99.2222, 46.7816)
collection = (
ee.ImageCollection("USDA/NAIP/DOQQ")
.filterBounds(point)
.filterDate("2008-01-01", "2018-01-01")
.filter(ee.Filter.listContains("system:band_names", "N"))
)
image = collection.first()
Map.addLayer(image, {}, "NAIP")
Map.centerObject(image)
Map
Map = geemap.Map()
point = ee.Geometry.Point(-99.2222, 46.7816)
collection = (
ee.ImageCollection("USDA/NAIP/DOQQ")
.filterBounds(point)
.filterDate("2008-01-01", "2018-01-01")
.filter(ee.Filter.listContains("system:band_names", "N"))
)
image = collection.first()
Map.addLayer(image, {}, "NAIP")
Map.centerObject(image)
Map
In [ ]:
Copied!
geemap.ee_to_geotiff(
image, "naip.tif", resolution=5, vis_params={"bands": ["N", "R", "G"]}
)
geemap.ee_to_geotiff(
image, "naip.tif", resolution=5, vis_params={"bands": ["N", "R", "G"]}
)
In [ ]:
Copied!
Map = geemap.Map()
image = ee.Image("LANDSAT/LC08/C02/T1_TOA/LC08_044034_20140318").select(
["B5", "B4", "B3"]
)
vis_params = {"min": 0, "max": 0.5, "gamma": [0.95, 1.1, 1]}
Map.centerObject(image)
Map.addLayer(image, vis_params, "Landsat")
Map
Map = geemap.Map()
image = ee.Image("LANDSAT/LC08/C02/T1_TOA/LC08_044034_20140318").select(
["B5", "B4", "B3"]
)
vis_params = {"min": 0, "max": 0.5, "gamma": [0.95, 1.1, 1]}
Map.centerObject(image)
Map.addLayer(image, vis_params, "Landsat")
Map
In [ ]:
Copied!
bbox = Map.user_roi_coords()
if bbox is None:
bbox = [-122.5955, 37.5339, -122.0982, 37.8252]
bbox = Map.user_roi_coords()
if bbox is None:
bbox = [-122.5955, 37.5339, -122.0982, 37.8252]
In [ ]:
Copied!
geemap.ee_to_geotiff(image, "landsat.tif", bbox, vis_params, resolution=30)
geemap.ee_to_geotiff(image, "landsat.tif", bbox, vis_params, resolution=30)