Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

468
Visualizações
Exportación de la colección de imágenes - Temperatura de la superficie Landsat-8 (Google Earth Engine)

He estado tratando de exportar la temperatura superficial media trimestral derivada de Landsat-8. Me topé con el módulo de lote de fitoprincipe's. Sin embargo, en lugar de exportar una sola imagen para cada trimestre, exporta varias imágenes vacías. ¿Puede alguien ayudarme a resolver esto?

 var batch = require('users/fitoprincipe/geetools:batch'); // This example demonstrates the use of the Landsat 8 Collection 2, Level 2 // QA_PIXEL band (CFMask) to mask unwanted pixels. function maskL8sr(image) { // Bit 0 - Fill // Bit 1 - Dilated Cloud // Bit 2 - Cirrus // Bit 3 - Cloud // Bit 4 - Cloud Shadow var qaMask = image.select('QA_PIXEL').bitwiseAnd(parseInt('11111', 2)).eq(0).copyProperties(image, ['system:time_start']); var saturationMask = image.select('QA_RADSAT').eq(0).copyProperties(image, ['system:time_start']); // Apply the scaling factors to the appropriate bands. var opticalBands = image.select('SR_B.').multiply(0.0000275).add(-0.2).copyProperties(image, ['system:time_start']); var thermalBands = image.select('ST_B.*').multiply(0.00341802).add(-124.15).copyProperties(image, ['system:time_start']); // Replace the original bands with the scaled ones and apply the masks. return image.addBands(opticalBands, null, true) .addBands(thermalBands, null, true) .updateMask(qaMask) .updateMask(saturationMask) .copyProperties(image, ['system:time_start']); } // Map the function over one year of data. var collection = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2') .filterDate('2016-01-01', '2021-12-31') .map(maskL8sr); // Display the results. Map.setCenter(120.9854, 14.5994,10); // Metro Manila Map.addLayer(composite.select('ST_B10').clip(table), {min: -10, max: 50, palette: 'blue,green,yellow,orange,red'}); var start = ee.Date('2016-01-01'); var end = ee.Date('2021-12-31'); var numbQuarters = end.difference(start, 'month').divide(3).ceil(); // make a composite image for every quarter var quarterlyImages = ee.ImageCollection.fromImages( ee.List.sequence(1, numbQuarters).map( function(quarter){ var startTemp = start.advance( ee.Number(quarter).subtract(1).multiply(3), 'month'); var endTemp = start.advance(ee.Number(quarter).multiply(3), 'month'); var image = collection.filterDate(startTemp, endTemp) .filterBounds(table) .mean() .clip(table) .select('ST_B10'); return image.set('system:time_start', startTemp.millis(), 'system:time_end', endTemp.millis()); })); print(quarterlyImages); batch.Download.ImageCollection.toDrive(quarterlyImages, 'Quarterly Folder', {name: 'LST_{system:index}', scale: 30});

Aquí está el código .

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Aquí está su código de trabajo , y las imágenes no están en blanco.

seleccione amablemente su área de interés (aquí nombrada como tabla) y colóquela en //Descargar colección de imágenes como región: tabla

Aquí está su código de trabajo.

He cambiado las fechas de 2020-01-01 a 2021-12-31 y la tarea muestra 8 imágenes para subir a drive ya que 2 años serán 8 trimestres

ingrese la descripción de la imagen aquí

 var batch = require('users/fitoprincipe/geetools:batch'); // This example demonstrates the use of the Landsat 8 Collection 2, Level 2 // QA_PIXEL band (CFMask) to mask unwanted pixels. function maskL8sr(image) { // Bit 0 - Fill // Bit 1 - Dilated Cloud // Bit 2 - Cirrus // Bit 3 - Cloud // Bit 4 - Cloud Shadow var qaMask = image.select('QA_PIXEL').bitwiseAnd(parseInt('11111', 2)).eq(0).copyProperties(image, ['system:time_start']); var saturationMask = image.select('QA_RADSAT').eq(0).copyProperties(image, ['system:time_start']); // Apply the scaling factors to the appropriate bands. var opticalBands = image.select('SR_B.').multiply(0.0000275).add(-0.2).copyProperties(image, ['system:time_start']); var thermalBands = image.select('ST_B.*').multiply(0.00341802).add(-124.15).copyProperties(image, ['system:time_start']); // Replace the original bands with the scaled ones and apply the masks. return image.addBands(opticalBands, null, true) .addBands(thermalBands, null, true) .updateMask(qaMask) .updateMask(saturationMask) .copyProperties(image, ['system:time_start']); } // Map the function over one year of data. var collection = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2') .filterDate('2020-01-01', '2021-12-31') .map(maskL8sr); // Display the results. Map.setCenter(120.9854, 14.5994,10); // Metro Manila var start = ee.Date('2020-01-01'); var end = ee.Date('2021-12-31'); var numbQuarters = end.difference(start, 'month').divide(3).ceil(); // make a composite image for every quarter var quarterlyImages = ee.ImageCollection.fromImages( ee.List.sequence(1, numbQuarters).map( function(quarter){ var startTemp = start.advance( ee.Number(quarter).subtract(1).multiply(3), 'month'); var endTemp = start.advance(ee.Number(quarter).multiply(3), 'month'); var image = collection.filterDate(startTemp, endTemp) .filterBounds(table) .mean() .clip(table) .select('ST_B10'); return image.set('system:time_start', startTemp.millis(), 'system:time_end', endTemp.millis()); })); print(quarterlyImages); Map.addLayer(quarterlyImages.first(), {min: -10, max: 50, palette: 'blue,green,yellow,orange,red'}); //Download Image Collection batch.Download.ImageCollection.toDrive(quarterlyImages, 'Landsat8', { name: 'LST_{system:index}', type: 'float', scale: 30, region: table });
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda