Fix histogram deformations

pull/769/head
Piero Toffanin 2019-12-10 15:31:54 -05:00
rodzic 60364dbc0b
commit 3a5d30f43c
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -58,11 +58,13 @@ algos = {
},
'LAI': {
'expr': '3.618 * (2.5 * (N - R) / (N + 6*R - 7.5*B + 1)) * 0.118',
'help': 'Leaf Area Index estimates foliage areas and predicts crop yields.'
'help': 'Leaf Area Index estimates foliage areas and predicts crop yields.',
'range': (-1, 1)
},
'EVI': {
'expr': '2.5 * (N - R) / (N + 6*R - 7.5*B + 1)',
'help': 'Enhanced Vegetation Index is useful in areas where NDVI might saturate, by using blue wavelengths to correct soil signals.'
'help': 'Enhanced Vegetation Index is useful in areas where NDVI might saturate, by using blue wavelengths to correct soil signals.',
'range': (-1, 1)
},
# more?

Wyświetl plik

@ -115,6 +115,11 @@ export default class Histogram extends React.Component {
return [band.histogram[1][i], e];
});
// Make sure histogram starts and ends at 0
// to prevent oblique looking charts
data.unshift([data[0][0], 0]);
data.push([data[data.length - 1][0], 0]);
// Plot the area
svg.append('g')
.append("path")