Geographic Information Systems Asked by Nani on February 16, 2021
I am trying to create a time lapse video in Google Earth Engine code editor of the Arikaree glacier in CO with the following code:
.filter(ee.Filter.eq('WRS_PATH', 34))
.filter(ee.Filter.eq('WRS_ROW', 32))
.filter(ee.Filter.lt('CLOUD_COVER',25))
.filterBounds(ee.Geometry.Rectangle(-105.647002, 40.042805, -105.625015, 40.060087))
.select(['B3', 'B2', 'B1']);
var L7coll = ee.ImageCollection('LANDSAT/LE07/C01/T1_SR')
.filter(ee.Filter.eq('WRS_PATH', 34))
.filter(ee.Filter.eq('WRS_ROW', 32))
.filter(ee.Filter.lt('CLOUD_COVER',25))
.filterBounds(ee.Geometry.Rectangle(-105.647002, 40.042805, -105.625015, 40.060087))
.select(['B3', 'B2', 'B1'])
.map(function(image){
var filled1a = image.focal_mean(2, 'square', 'pixels', 1);
return filled1a.blend(image);
});
var L8coll = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filter(ee.Filter.eq('WRS_PATH', 34))
.filter(ee.Filter.eq('WRS_ROW', 32))
.filterBounds(ee.Geometry.Rectangle(-105.647002, 40.042805, -105.625015, 40.060087))
.filter(ee.Filter.lt('CLOUD_COVER',25))
.map(function(image){
return image.rename(['B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'B11']);
})
.select(['B3', 'B2', 'B1']);
var collection_merge = ee.ImageCollection(L5coll.merge(L7coll.merge(L8coll)));
print (collection_merge);
var years = ee.List.sequence(1984, 2020);
print (years);
// Export the image, specifying scale and region.
Export.video.toDrive({
collection: collection_merge,
description: 'Arikaree3',
framesPerSecond: 5,
scale : (0,255 )});
When I try to create the video, I get the error:
"Error: Data type for band [B3] is not supported by video export: Type<Short>. Video export requires 8-bit bands; consider scaling to 0-255 and casting to 'uint8'."
I’m unsure what to do. Any suggestions?
From my research, it seems that Landsat 8 may have a 16-bit band which I think maybe causing the problem, but when I try to run this without the Landsat 8 images I still get the same error.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP