ee.Image.loadGeoTIFF

Loads a GeoTIFF as an Image.

UsageReturns
ee.Image.loadGeoTIFF(uri)Image
ArgumentTypeDetails
uriStringThe Cloud Storage URI of the GeoTIFF to load.

Examples

Code Editor (JavaScript)

var uri = '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';
var cloudImage = ee.Image.loadGeoTIFF(uri);

print(cloudImage);

Map.addLayer(cloudImage, {min: 0, max: 20000});
Map.centerObject(cloudImage, 6);

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

uri = (
    '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'
)
cloud_image = ee.Image.loadGeoTIFF(uri)

display(cloud_image)

m = geemap.Map()
m.add_layer(cloud_image, {'min': 0, 'max': 20000})
m.center_object(cloud_image, 6)
m