GEE數據導出注意事項


GEE數據導出注意事項


一些設置:

  • region: roi.geometry().bounds()
  • crs: "EPSG:4326"
  • maxPixels: 1e13
var gldas = ee.ImageCollection("NASA/GLDAS/V021/NOAH/G025/T3H");  //數據選擇
var fCol = ee.FeatureCollection("users/xxx/province");  
var sCol = fCol.filter(ee.Filter.eq("PINYIN_NAM", "Beijing")); //選出北京市邊界矢量
var tem = gldas.filterDate("2018-3-1", "2018-4-1")  
              .select("Tair_f_inst")  
              .first();  
Export.image.toDrive({  
  image: tem.clip(sCol),  
  description: "xxx",  
  folder: "xxxx",   
  //fileNamePrefix: "xxxx",  //名字前綴
  region: sCol.geometry().bounds(), //設置范圍  
  crs: "EPSG:4326", //設置投影方式  
  crsTransform: [0.25,0,-180,0,-0.25,90],  //0.25為分辨率
  maxPixels: 1e13 //設置最大像素值  
});  

將影像集合中的影像導出為視頻

var l8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_RT_TOA");  
var selectCol = l8.filterBounds(roi)  
                  .filterDate("2017-1-1", "2017-12-31");
var exportCol = selectCol.map(function(img) {  
  img = img.clip(roi);  
  return img.multiply(768).uint8();  //0~255
});  
print("image count is: ", exportCol.size());  
//導出指定區域的時間序列的rgb影像,幀率12,分辨率30,區域是roi區域  
Export.video.toDrive({  
  collection: exportCol.select(["B3", "B2", "B1"]),  
  description: "Drive-exportL8Video",  
  fileNamePrefix: "l8Video",  
  //folder: "xxx",  
  scale: 30,  
  framesPerSecond: 12,  
  region: roi  
});


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM