Skip to content

Commit

Permalink
flip time
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Oct 29, 2024
1 parent 4381355 commit 3103040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions forcingprocessor/src/forcingprocessor/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,10 +834,10 @@ def prep_ngen_data(conf):
# nwm_data=nwm_data[0][None,:]
data_array, t_ax, nwm_data = multiprocess_data_extract(jnwm_files,nprocs,weights_json,fs)

# if datetime.strptime(t_ax[0],'%Y-%m-%d %H:%M:%S') > datetime.strptime(t_ax[-1],'%Y-%m-%d %H:%M:%S'):
# # Hack to ensure data is always written out with time moving forward.
# t_ax=list(reversed(t_ax))
# data_array = np.flip(data_array,axis=0)
if datetime.strptime(t_ax[0],'%Y-%m-%d %H:%M:%S') > datetime.strptime(t_ax[-1],'%Y-%m-%d %H:%M:%S'):
# Hack to ensure data is always written out with time moving forward.
t_ax=list(reversed(t_ax))
data_array = np.flip(data_array,axis=0)

t_extract = time.perf_counter() - t0
complexity = (nfiles_tot * ncatchments) / 10000
Expand Down

0 comments on commit 3103040

Please sign in to comment.