Skip to content
Snippets Groups Projects

Resolve "release v1.4.0"

Merged Ghost User requested to merge release_v1.4.0 into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -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
Loading