From 93b330843ec84c08fd1d8450e6216fd73167546f Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Tue, 1 Dec 2020 13:35:46 +0100 Subject: [PATCH] further temporal adjustments --- run.py | 19 ++++++++- run_hourly.py | 9 +++-- ...station_list_north_german_plain_rural.json | 40 +++++++++++++++++++ 3 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 supplement/station_list_north_german_plain_rural.json diff --git a/run.py b/run.py index 15f30a7e..9f5d0f08 100644 --- a/run.py +++ b/run.py @@ -3,11 +3,26 @@ __date__ = '2020-06-29' import argparse from mlair.workflows import DefaultWorkflow +from mlair.helpers import remove_items +from mlair.configuration.defaults import DEFAULT_PLOT_LIST -def main(parser_args): +def load_stations(): + import json + try: + filename = 'supplement/station_list_north_german_plain_rural.json' + with open(filename, 'r') as jfile: + stations = json.load(jfile) + except FileNotFoundError: + stations = None + return stations + - workflow = DefaultWorkflow(**parser_args.__dict__) +def main(parser_args): + plots = remove_items(DEFAULT_PLOT_LIST, "PlotConditionalQuantiles") + workflow = DefaultWorkflow(stations=load_stations(), + train_model=False, create_new_model=False, network="UBA", + evaluate_bootstraps=False, plot_list=["PlotStationMap"], **parser_args.__dict__) workflow.run() diff --git a/run_hourly.py b/run_hourly.py index a21c779b..48c72058 100644 --- a/run_hourly.py +++ b/run_hourly.py @@ -9,7 +9,7 @@ from mlair.workflows import DefaultWorkflow def load_stations(): import json try: - filename = 'supplement/station_list_north_german_plain.json' + filename = 'supplement/station_list_north_german_plain_rural.json' with open(filename, 'r') as jfile: stations = json.load(jfile) except FileNotFoundError: @@ -18,8 +18,11 @@ def load_stations(): def main(parser_args): - - workflow = DefaultWorkflow(sampling="hourly", window_history_size=48, **parser_args.__dict__) + workflow = DefaultWorkflow(sampling="hourly", window_history_size=8, stations=load_stations(), + train_model=False, + create_new_model=False, + network="UBA", + plot_list=["PlotStationMap"], **parser_args.__dict__) workflow.run() diff --git a/supplement/station_list_north_german_plain_rural.json b/supplement/station_list_north_german_plain_rural.json new file mode 100644 index 00000000..2991bfbf --- /dev/null +++ b/supplement/station_list_north_german_plain_rural.json @@ -0,0 +1,40 @@ +[ + "DENI031", + "DEBE062", + "DEUB020", + "DESH001", + "DEUB022", + "DEBB053", + "DEMV017", + "DENI063", + "DENI058", + "DESH014", + "DEUB007", + "DEUB005", + "DEBB051", + "DEUB034", + "DEST089", + "DEUB028", + "DESH017", + "DEUB030", + "DEMV012", + "DENI059", + "DENI060", + "DESH013", + "DEUB006", + "DEUB027", + "DEUB026", + "DEUB038", + "DEMV001", + "DEUB024", + "DEUB037", + "DESH008", + "DEMV004", + "DEUB040", + "DEMV024", + "DEMV026", + "DESH056", + "DEHH063", + "DEUB001", + "DEST069" +] -- GitLab