Skip to content

Error when loading geoTIFF #6

Answered by giswqs
el-cordero asked this question in Q&A
Discussion options

You must be logged in to vote

It seems the Google Cloud bucket hosting the sample file is no longer accessible. Try the following example instead.

import geemap
Map = geemap.Map()
URL = 'gs://gcp-public-data-landsat/LC08/01/001/002/LC08_L1GT_001002_20160817_20170322_01_T2/LC08_L1GT_001002_20160817_20170322_01_T2_B5.TIF'
image = geemap.load_GeoTIFF(URL)
vis = {
    "min": 0,
    "max": 20000,
}
Map.addLayer(image, vis, 'Cloud GeoTIFF')
Map.centerObject(image, 6)
Map

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@franegrao
Comment options

Answer selected by giswqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants