Commit c6d9b54c authored by Le Roux Erwan's avatar Le Roux Erwan
Browse files

[SCM] some parameters modification to create poster for the Doctoriales

parent fb4432fe
No related merge requests found
Showing with 8 additions and 8 deletions
+8 -8
...@@ -17,7 +17,7 @@ class Crocus(AbstractStudy): ...@@ -17,7 +17,7 @@ class Crocus(AbstractStudy):
@property @property
def variable_name(self): def variable_name(self):
suffix = '' if self.altitude == 2400 else ' instantaneous data observed sampled every 24 hours' suffix = '' if self.altitude == 2400 else ' sampled every 24 hours'
return super().variable_name + suffix return super().variable_name + suffix
def annual_aggregation_function(self, *args, **kwargs): def annual_aggregation_function(self, *args, **kwargs):
......
...@@ -72,12 +72,12 @@ def normal_visualization(temporal_non_stationarity=False): ...@@ -72,12 +72,12 @@ def normal_visualization(temporal_non_stationarity=False):
save_to_file = False save_to_file = False
only_first_one = True only_first_one = True
# for study_class in SCM_STUDIES[:1]: # for study_class in SCM_STUDIES[:1]:
for study_class in [SafranSnowfall, SafranRainfall, SafranTemperature][:1]: for study_class in [CrocusDepth, SafranSnowfall, SafranRainfall, SafranTemperature][:1]:
for study in study_iterator(study_class, only_first_one=only_first_one): for study in study_iterator(study_class, only_first_one=only_first_one):
study_visualizer = StudyVisualizer(study, save_to_file=save_to_file, temporal_non_stationarity=temporal_non_stationarity) study_visualizer = StudyVisualizer(study, save_to_file=save_to_file, temporal_non_stationarity=temporal_non_stationarity)
# study_visualizer.visualize_independent_margin_fits(threshold=[None, 20, 40, 60][0]) # study_visualizer.visualize_independent_margin_fits(threshold=[None, 20, 40, 60][0])
# study_visualizer.visualize_annual_mean_values() # study_visualizer.visualize_annual_mean_values()
study_visualizer.visualize_linear_margin_fit(only_first_max_stable=True) study_visualizer.visualize_linear_margin_fit(only_first_max_stable=None)
def complete_analysis(only_first_one=False): def complete_analysis(only_first_one=False):
...@@ -97,7 +97,7 @@ def complete_analysis(only_first_one=False): ...@@ -97,7 +97,7 @@ def complete_analysis(only_first_one=False):
if __name__ == '__main__': if __name__ == '__main__':
# annual_mean_vizu_compare_durand_study(safran=True, take_mean_value=True, altitude=2400) # annual_mean_vizu_compare_durand_study(safran=True, take_mean_value=True, altitude=2400)
normal_visualization(temporal_non_stationarity=False) # normal_visualization(temporal_non_stationarity=False)
# max_stable_process_vizu_compare_gaume_study(altitude=1800, nb_days=1) # max_stable_process_vizu_compare_gaume_study(altitude=1800, nb_days=1)
# extended_visualization() extended_visualization()
# complete_analysis() # complete_analysis()
...@@ -126,8 +126,8 @@ class StudyVisualizer(object): ...@@ -126,8 +126,8 @@ class StudyVisualizer(object):
def visualize_all_experimental_law(self): def visualize_all_experimental_law(self):
self.visualize_massif_graphs(self.visualize_experimental_law) self.visualize_massif_graphs(self.visualize_experimental_law)
self.plot_name = ' Empirical distribution ' self.plot_name = ' Empirical distribution \n'
self.plot_name += 'with all available data' if self.year_for_kde_plot is None else \ self.plot_name += 'with data from the 23 mountain chains of the French Alps ' if self.year_for_kde_plot is None else \
'for the year {}'.format(self.year_for_kde_plot) 'for the year {}'.format(self.year_for_kde_plot)
self.show_or_save_to_file() self.show_or_save_to_file()
...@@ -194,7 +194,7 @@ class StudyVisualizer(object): ...@@ -194,7 +194,7 @@ class StudyVisualizer(object):
# extraticks = [float(float_to_str_with_only_some_significant_digits(x, nb_digits=2)) # extraticks = [float(float_to_str_with_only_some_significant_digits(x, nb_digits=2))
# for x in sorted_x_levels] # for x in sorted_x_levels]
# Display only some specific ticks # Display only some specific ticks
extraticks_names = ['mean', AbstractParams.QUANTILE_100] extraticks_names = ['mean', AbstractParams.QUANTILE_10, AbstractParams.QUANTILE_100, 'maxima']
if self.plot_block_maxima_quantiles: if self.plot_block_maxima_quantiles:
extraticks_names += [name for name in name_to_xlevel_and_color.keys() if BLOCK_MAXIMA_DISPLAY_NAME in name] extraticks_names += [name for name in name_to_xlevel_and_color.keys() if BLOCK_MAXIMA_DISPLAY_NAME in name]
extraticks = [name_to_xlevel_and_color[name][0] for name in extraticks_names] extraticks = [name_to_xlevel_and_color[name][0] for name in extraticks_names]
......
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