问题:
假设在 Google Earth Engine 中有一个大图像,我想将其导出为 CSV。但是,由于它的大小,我很难将其转换为 FeatureCollection 来进行导出,而且我不知道是否有解决方法。
这里将提供几条修改意见,一个是根据经纬度获取个点的值,并用sample进行提取;另外就是重采样的方式。
原始代码:
var age = ee.Image('users/celsohlsj/public/secondary_vegetation_age_collection71_v5').select('classification_2020');
var biomass = ee.Image('projects/ee-ana-zonia/assets/biomass_2020') // anyone can read
var sd = ee.Image('projects/ee-ana-zonia/assets/biomass_sd_2020') // anyone can read
var cwd = ee.Image('projects/ee-ana-zonia/assets/cwd_chave') // anyone can read
var amazon_biome = ee.FeatureCollection('projects/ee-ana-zonia/assets/amazon_biome_border'); // anyone can read// Clip to Amazon biome
var age = age.clip(amazon_biome).updateMask(age.gt(0)); // select only pixels with age 1 or greater
var biomass = biomass.clip(amazon_biome);
var sd = sd.clip(amazon_biome);
var cwd = cwd.clip(amazon_biome);// set visualization parameters
var ageviz = { min: 0, max: 33, palette: ['00FFFF', '0000FF'] };
var agbdviz = { min: 0, max: 415, palette: ['00FFFF', '0000FF'] };
var cwdviz = { min: -831.75, max: 0, palette: ['00FFFF', '0000FF'] };// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// this section is done to account for the "edge" pixels. To attribute a more accura