javascript - Reduce Regions, some features dont contains centroid of pixel, in consecuence extracts of min or max obtains null value
问题描述
I have some problems to extract min or max statistcs from stack image to FeatureCollection.
----var results_max = ee.Image(lc_stack).select(bandas).reduceRegions(fc ,ee.Reducer.max(),10);
Specification of problem
1 When i use min or max reducers, features which don´t contain centroid of pixel, appears like null value (Like Feature 0, ID = 2379127 ). Conversly, features that contain centroid appear with values of min and max statistics (Like Feature 0, ID = 2379128 ).
2 On the other hand, when i use mean or count reducers, statistics are obteined by proportional area, so we don't have problems with null values.
WHAT I WOULD LIKE TO OBTAIN
Main objective: Statistics of min or max, but wihout null values, i'm not interested in modify 'tileScale'
If it is impossible to do, i would like to extract mean values BUT ONLY for features which can´t obtain data for min or max. And export data like unique csv file if it's possible.
code link : https://code.earthengine.google.com/114d01347161e118818b1baf69fcf5fc
Thank you for your time, have a nice day.
解决方案
推荐阅读
- android - 我开发了一个 android 应用程序,它可以扫描产品上标记的 QR 码。像 Inigma 这样的应用程序运行良好,但我的应用程序无法扫描
- machine-learning - 在多类逻辑回归中,SGD 一个训练示例会更新所有权重吗?
- regex - sed: What's wrong with this replace command?
- c++11 - reference to 'rank' is ambiguous
- matlab - 使用“subs”函数评估“dsolve”的输出在 Maltab 中提供额外的输出
- angular - 用于垫表的单个列过滤器
- ionic3 - 错误:未捕获(承诺中):错误:StaticInjectorError(AppModule)[login]:Ngx-translate
- c++ - C++ 包含文件错误
- javascript - Curiosity on react(?) or javascript syntax
- batch-file - 从文件循环读取的行在批处理程序中未正确分配