diff --git a/getgfs/getgfs.py b/getgfs/getgfs.py index 6f13ca0..e2fc471 100644 --- a/getgfs/getgfs.py +++ b/getgfs/getgfs.py @@ -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) ) )