From 9ff5501727b98dea80425c735ea918dee9b173ca Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Tue, 18 May 2021 17:05:29 +0200 Subject: [PATCH] more loggings --- mlair/helpers/filter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mlair/helpers/filter.py b/mlair/helpers/filter.py index e47364ac..4a6a5044 100644 --- a/mlair/helpers/filter.py +++ b/mlair/helpers/filter.py @@ -263,6 +263,9 @@ class ClimateFIRFilter: td_type) new_time_axis = np.arange(start, end).astype("datetime64[ns]") logging.info(f"{data.coords['Stations'].values[0]}: shape of new_time_axis = {new_time_axis.shape}") + logging.info(f"{data.coords['Stations'].values[0]}: start of new_time_axis = {start}") + logging.info(f"{data.coords['Stations'].values[0]}: end of new_time_axis = {end}") + logging.info(f"{data.coords['Stations'].values[0]}: delta of new_time_axis = {end - start}") # extract old values to use with new axis start = coords[time_dim][-1].values.astype("datetime64[%s]" % td_type) - np.timedelta64( @@ -272,6 +275,9 @@ class ClimateFIRFilter: end = coords[time_dim][-1].values.astype("datetime64[%s]" % td_type) new_values = apriori.sel({time_dim: slice(start, end)}) logging.info(f"{data.coords['Stations'].values[0]}: shape of new_values = {new_values.shape}") + logging.info(f"{data.coords['Stations'].values[0]}: start of new_values = {start}") + logging.info(f"{data.coords['Stations'].values[0]}: end of new_values = {end}") + logging.info(f"{data.coords['Stations'].values[0]}: delta of new_values = {end - start}") new_values.coords[time_dim] = new_time_axis # add new values to apriori -- GitLab