JAXA Earth API for JavaScript
    Preparing search index...

    Function globalStat

    • Computes the statistics of the data, taking into account the difference in area per pixel calculated based on the WGS84 ellipsoid of revolution. Pixels with NaN are not included in the statistics. 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; mean: 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.

      • mean: number

        The mean of the values of all pixels. In the calculation, the difference in area per pixel is taken into account as a weight per pixel.

      Only equirectangular (EPSG:4326) is supported; the North Region (EPSG:3995), South Region (EPSG:3031), etc. are not supported.