Skip to content
Snippets Groups Projects
Commit 9ff55017 authored by leufen1's avatar leufen1
Browse files

more loggings

parent 939f1980
Branches
Tags
5 merge requests!319add all changes of dev into release v1.4.0 branch,!318Resolve "release v1.4.0",!317enabled window_lead_time=1,!295Resolve "data handler FIR filter",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #68030 passed
...@@ -263,6 +263,9 @@ class ClimateFIRFilter: ...@@ -263,6 +263,9 @@ class ClimateFIRFilter:
td_type) td_type)
new_time_axis = np.arange(start, end).astype("datetime64[ns]") 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]}: 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 # extract old values to use with new axis
start = coords[time_dim][-1].values.astype("datetime64[%s]" % td_type) - np.timedelta64( start = coords[time_dim][-1].values.astype("datetime64[%s]" % td_type) - np.timedelta64(
...@@ -272,6 +275,9 @@ class ClimateFIRFilter: ...@@ -272,6 +275,9 @@ class ClimateFIRFilter:
end = coords[time_dim][-1].values.astype("datetime64[%s]" % td_type) end = coords[time_dim][-1].values.astype("datetime64[%s]" % td_type)
new_values = apriori.sel({time_dim: slice(start, end)}) 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]}: 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 new_values.coords[time_dim] = new_time_axis
# add new values to apriori # add new values to apriori
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment