Sentinel-5 제품을 사용하여 에어로졸 변경 동영상에 대한 코드를 아래에 작성했습니다. 동영상을 Google 드라이브에 저장할 때이 오류가 발생합니다. 발생 :

작업 세부 정보 : myvideo

상태 : 실패

17 초 전에 시작됨 (2019-08- 27 20:18:34 +0430)

런타임 : 9s

Id : ZTMTUZWKR2TUL3TXP0E57VBZ

소스 스크립트

오류 : ImageCollection은 3 개 또는 4 개 밴드

코드 링크 : https://code.earthengine.google.com/9127141eaed10f0c40b485f488c202e9

var dust = ee.ImageCollection("COPERNICUS/S5P/NRTI/L3_AER_AI") .filterBounds(table) .filterDate("2018-01-01","2020-01-01") .select("absorbing_aerosol_index"); var dust_test = dust.map(function(img){ return img.clip(table); }); var coll4Video = dust_test .map(function(image) { return image.uint8(); // need to make it 8-bit }); Export.video.toDrive({ collection: coll4Video, description: "myvideo" , scale: 1000, framesPerSecond: 2, region: table }); 

답변

오류에서 알 수 있듯이 동영상 내보내기 이미지에 3 개의 밴드 (r, g, b) 또는 4 개의 밴드 (r, g, b, alpha)가 있어야합니다. 이미지에 밴드가 1 개만 있습니다. 여기에서 visualize()를 호출하여 시각화를 적용하고 내보내기에 적합한 3 밴드 이미지로 변환 할 수 있습니다.

var dust = ee.ImageCollection("COPERNICUS/S5P/NRTI/L3_AER_AI") .filterBounds(table) .filterDate("2018-01-01","2020-01-01") .select("absorbing_aerosol_index"); var dust_test = dust.map(function(img){ return img.clip(table); }); var val_max = 2.0; var val_min = -1; var band_viz = { min: val_min, max: val_max, opacity: 1.0, palette: ["black", "blue", "purple", "cyan", "green", "yellow", "red"] }; var coll4Video = dust_test .map(function(image) { return image.visualize(band_viz); }); Map.addLayer(coll4Video) Export.video.toDrive({ collection: coll4Video, description: "myvideo" , scale: 1000, framesPerSecond: 2, region: table }); 

코드 링크 https://code.earthengine.google.com/7366d0ea6c24f3bcf3f3c0bf4eb623e9

댓글

  • 감사합니다. 귀하의 팁이 잘 작동합니다.

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다