zoukankan      html  css  js  c++  java
  • 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  
    });
    
  • 相关阅读:
    函数
    关联子查询
    子查询
    视图(VIEW)
    顺时针打印矩阵
    二叉树的镜像
    树的子结构
    将两个有序链表合并
    反转链表
    输出链表中倒数第k个结点
  • 原文地址:https://www.cnblogs.com/icydengyw/p/15200593.html
Copyright © 2011-2022 走看看