You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a mask parameter (raster/polygon) to be used to calculate the stats of the cells that lies within this given raster/polygon.
[pyramids] pyramids/dataset.py (Lines 540-561)
def stats(self, band: int = None) -> DataFrame:
"""stats.
- Get statistics of a band.
[min, max, mean, std]
Parameters
----------
band: [int]
band index, if None the statistics of all bands will be returned.
Returns
-------
DataFrame:
DataFrame of statistics values of each band, the dataframe has the following columns:
[min, max, mean, std], the index of the dataframe is the band names.
min max mean std
Band_1 270.369720 270.762299 270.551361 0.154270
Band_2 269.611938 269.744751 269.673645 0.043788
Band_3 273.641479 274.168823 273.953979 0.198447
Band_4 273.991516 274.540344 274.310669 0.205754
"""
Add a mask parameter (raster/polygon) to be used to calculate the stats of the cells that lies within this given raster/polygon.
[pyramids] pyramids/dataset.py (Lines 540-561)
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream
The text was updated successfully, but these errors were encountered: