Skip to content
Snippets Groups Projects
Commit 7f478de2 authored by leufen1's avatar leufen1
Browse files

make color scale robust for PlotSeparationOfScales, important: the separation...

make color scale robust for PlotSeparationOfScales, important: the separation of scales data handler can cause memory errors depending on your system's abilities
parent 22ad918c
No related branches found
No related tags found
3 merge requests!192include Develop,!191Resolve "release v1.1.0",!186Resolve "Separation of Scales"
Pipeline #52156 passed with warnings
...@@ -25,6 +25,11 @@ from mlair.helpers import TimeTrackingWrapper ...@@ -25,6 +25,11 @@ from mlair.helpers import TimeTrackingWrapper
logging.getLogger('matplotlib').setLevel(logging.WARNING) logging.getLogger('matplotlib').setLevel(logging.WARNING)
# import matplotlib
# matplotlib.use("TkAgg")
# import matplotlib.pyplot as plt
class AbstractPlotClass: class AbstractPlotClass:
""" """
Abstract class for all plotting routines to unify plot workflow. Abstract class for all plotting routines to unify plot workflow.
...@@ -1015,7 +1020,7 @@ class PlotSeparationOfScales(AbstractPlotClass): ...@@ -1015,7 +1020,7 @@ class PlotSeparationOfScales(AbstractPlotClass):
station = dh.id_class.station[0] station = dh.id_class.station[0]
data = data.sel(Stations=station) data = data.sel(Stations=station)
# plt.subplots() # plt.subplots()
data.plot(x="datetime", y="window", col="filter", row="variables") data.plot(x="datetime", y="window", col="filter", row="variables", robust=True)
self.plot_name = f"{orig_plot_name}_{station}" self.plot_name = f"{orig_plot_name}_{station}"
self._save() self._save()
......
...@@ -11,7 +11,7 @@ from mlair.data_handler.data_handler_mixed_sampling import DataHandlerMixedSampl ...@@ -11,7 +11,7 @@ from mlair.data_handler.data_handler_mixed_sampling import DataHandlerMixedSampl
def main(parser_args): def main(parser_args):
args = dict(sampling="daily", args = dict(sampling="daily",
sampling_inputs="hourly", sampling_inputs="hourly",
window_history_size=72, window_history_size=24,
**parser_args.__dict__, **parser_args.__dict__,
data_handler=DataHandlerMixedSamplingSeparationOfScales, data_handler=DataHandlerMixedSamplingSeparationOfScales,
kz_filter_length=[100 * 24, 15 * 24], kz_filter_length=[100 * 24, 15 * 24],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment