stac/
statistics.rs

1use serde::{Deserialize, Serialize};
2
3/// Statistics of all pixels in the band.
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
5pub struct Statistics {
6    /// Mean value of all the pixels in the band
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub mean: Option<f64>,
9
10    /// Minimum value of all the pixels in the band
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub minimum: Option<f64>,
13
14    /// Maximum value of all the pixels in the band
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub maximum: Option<f64>,
17
18    /// Standard deviation value of all the pixels in the band
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub stddev: Option<f64>,
21
22    /// Percentage of valid (not nodata) pixel
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub valid_percent: Option<f64>,
25}