Skip to content

Commit

Permalink
fix error leading to wrong start time in qpe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Mar 11, 2024
1 parent 3f98baa commit 284a8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rainforest/qpe/qpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ def _qpe_to_chgrid(qpe, time, missing_files, precision=2):
1000 * np.max(Y_QPE_CENTERS)]])


time_start = time - datetime.timedelta(seconds = 5 * 60 + 1)
time_start = time - datetime.timedelta(seconds = 5 * 60)
grid.time['units'] = 'seconds since {:s}'.format(
datetime.datetime.strftime(time_start,
'%Y-%m-%dT%H:%M:%SZ'))
grid.time['data'] = np.arange(0, 5 *60)
grid.time['data'] = np.arange(0, 5 *60 + 1)
grid.origin_latitude['data'] = 46.9524
grid.origin_longitude['data'] = 7.43958333
grid.projection = proj4_to_dict("+proj=somerc +lat_0=46.95240555555556 "+\
Expand Down

0 comments on commit 284a8cb

Please sign in to comment.