Commit 4bd7a4db authored by Le Roux Erwan's avatar Le Roux Erwan
Browse files

[SCM] print some summary of the observations

parent 431b97f2
No related merge requests found
Showing with 8 additions and 0 deletions
+8 -0
...@@ -134,6 +134,14 @@ class StudyVisualizer(object): ...@@ -134,6 +134,14 @@ class StudyVisualizer(object):
self._observations.convert_to_spatio_temporal_index(self.coordinates) self._observations.convert_to_spatio_temporal_index(self.coordinates)
if self.normalization_under_one_observations: if self.normalization_under_one_observations:
self._observations.normalize() self._observations.normalize()
# Write a summary of observations
df = self._observations.df_maxima_gev
print('Observations summary:', ' ', end='')
print('Mean value:', df.mean().mean(), ' ', end='')
print('Min value:', df.min().min(), ' ', end='')
print('Max value:', df.max().max(), ' ', end='')
print('# of zero values:', df.size - np.count_nonzero(df.values), '\n')
return self._observations return self._observations
# Graph for each massif / or groups of massifs # Graph for each massif / or groups of massifs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment