当前位置:   article > 正文

GEE错误——超限问题解决Export too large: specified 375255165 pixels (max: 100000000)_gee数据太大报错

gee数据太大报错

超限错误一

L8B3_1323s3_med_luangwa00

ID: SPB5VCOWUJU2TUPI4PXXSKMX

PhaseFailed

Runtime: 27s (started 2024-01-28 15:50:11 +0800)

Attempted 1 time

Error: Export too large: specified 375255165 pixels (max: 100000000). Specify higher maxPixels value if you intend to export a large area. (Error code: 3)

 

原始代码: 

  1. // TERRAIN CORRECTION
  2. var scale = 300;
  3. var dem = ee.Image("USGS/SRTMGL1_003");
  4. var terrainCorrection = function(collection) {
  5. collection = collection.map(illuminationCondition);
  6. collection = collection.map(illuminationCorrection);
  7. return(collection);
  8. // Function to calculate illumination condition (IC). Function by Patrick Burns and Matt Macander
  9. function illuminationCondition(img){
  10. // Extract image metadata about solar position
  11. var SZ_rad = ee.Image.constant(ee.Number(img.get('SUN_ELEVATION'))).multiply(-1).add(90).multiply(3.14159265359).divide(180).clip(img.geometry().buffer(10000));
  12. var SA_rad = ee.Image.constant(ee.Number(img.get('SUN_AZIMUTH')).multiply(3.14159265359).divide(180)).clip(img.geometry().buffer(10000));
  13. // Creat terrain layers
  14. var slp = ee.Terrain.slope(dem).clip(img.geometry().buffer(10000));
  15. var slp_rad = ee.Terrain.slope(dem).multiply(3.14159265359).divide(180).clip(img.geometry().buffer(10000));
  16. var asp_rad = ee.Terrain.aspect(dem).multiply(3.14159265359).divide(180).clip(img.geometry().buffer(10000));
  17. // Calculate the Illumination Condition (IC)
  18. // slope part of the illumination condition
  19. var cosZ = SZ_rad.cos();
  20. var cosS = slp_rad.cos();
  21. var slope_illumination = cosS.expression("cosZ * cosS",
  22. {'cosZ': cosZ,
  23. 'cosS': cosS.select('slope')});
  24. // aspect part of the illumination condition
  25. var sinZ = SZ_rad.sin();
  26. var sinS = slp_rad.sin();
  27. var cosAziDiff = (SA_rad.subtract(asp_rad)).cos();
  28. var aspect_illumination = sinZ.expression("sinZ * sinS * cosAziDiff",
  29. {'sinZ': sinZ,
  30. 'sinS': sinS,
  31. 'cosAziDiff': cosAziDiff});
  32. // full illumination condition (IC)
  33. var ic = slope_illumination.add(aspect_illumination);
  34. // Add IC to original image
  35. var img_plus_ic = ee.Image(img.addBands(ic.rename('IC')).addBands(cosZ.rename('cosZ')).addBands(cosS.rename('cos
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/1010688
推荐阅读
相关标签
  

闽ICP备14008679号