我有一个表格,看起来像下面的示例。
const appoint = [{"a":"asas","b":{"au":false,"h":false,"l":true}},{"a":"avd","b":{"au":true,"h":false,"l":true}},{"a":"as","b":{"au":true,"h":false,"l":false}}]
const getKeysBy = (predicate, obj) =>
Object.entries(obj)
.filter(([, v]) => predicate(v))
.map(([k]) => k)
const result = appoint.flatMap(o => getKeysBy(v => v !== false, o.b))
console.log(result)
对于进一步绘制,我想进行绘制,这取决于海拔高度和dequence_number。
是否有可能获得依赖于两个值的均值:
Timestamp Scan_ID LOS_ID ... Radial_Wind_Speed_[m/s] CNR_[dB] Confidence_Index_Status
0 2019-04-04 23:01:00.147 26 4 ... 0.04 -11.66 1
1 2019-04-04 23:01:00.147 26 4 ... -0.18 -12.89 1
2 2019-04-04 23:01:00.147 26 4 ... 0.00 -12.27 1
3 2019-04-04 23:01:00.147 26 4 ... 0.12 -10.58 1
4 2019-04-04 23:01:00.147 26 4 ... 0.17 -6.32 1
最佳 和谢谢