JAXA Earth API for JavaScript
    Preparing search index...

    Function stat

    • Computes the statistics of the data. Pixels with NaN are not included in the statistics. Note that this calculation does not take into account the difference in area per pixel on the actual Earth's surface. This simplified calculation is fine when the latitude-longitude range is sufficiently narrow and the difference in area per pixel can be ignored, but to perform a rigorous evaluation on data with a wide latitude-longitude range where there are differences in area per pixel, use globalStat.

      Also, for data other than dataObject.photometricInterpretation = 1, statistical calculations such as the mean have no meaning, so no valid numerical value other than size can be retrieved.

      Parameters

      Returns {
          size: number;
          min: number;
          max: number;
          sum: number;
          mean: number;
          stdev: number;
          median: number;
      }

      • size: number

        The number of pixels excluding pixels with NaN.

      • min: number

        The smallest value (minimum) among the values of all pixels.

      • max: number

        The largest value (maximum) among the values of all pixels.

      • sum: number

        The sum of the values of all pixels.

      • mean: number

        The mean of the values of all pixels (sum / size).

      • stdev: number

        The standard deviation of the values of all pixels (√( Σ((x - mean)^2) / size )).

      • median: number

        The median of the values of all pixels.