Skip to content

Commit

Permalink
Merge pull request #11 from alexstoken/master
Browse files Browse the repository at this point in the history
Fix improper query time when query and forecast timedelta is larger than one day
  • Loading branch information
jagoosw authored Jul 28, 2024
2 parents 242e3bb + 9e0325a commit a88dc9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getgfs/getgfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def datetime_to_forecast(self, date_time):

query_time = "[{t_ind}]".format(
t_ind=round(
(desired_date - query_forecast).seconds
(desired_date - query_forecast).total_seconds()
/ (int(self.times["grads_step"][0]) * 60 * 60)
)
)
Expand Down

0 comments on commit a88dc9d

Please sign in to comment.