diff --git a/ush/soca/prep_ocean_obs.py b/ush/soca/prep_ocean_obs.py index 6b0379576..a3279d64e 100644 --- a/ush/soca/prep_ocean_obs.py +++ b/ush/soca/prep_ocean_obs.py @@ -46,9 +46,9 @@ def __init__(self, config: Dict) -> None: self.task_config['cdate'] = cdate window_begin_datetime = cdate - timedelta(hours=half_assim_freq) - window_begin_datetime = cdate + timedelta(hours=half_assim_freq) + window_end_datetime = cdate + timedelta(hours=half_assim_freq) self.window_begin = window_begin_datetime.strftime('%Y-%m-%dT%H:%M:%SZ') - self.window_end = window_begin_datetime.strftime('%Y-%m-%dT%H:%M:%SZ') + self.window_end = window_end_datetime.strftime('%Y-%m-%dT%H:%M:%SZ') self.task_config.conversion_list_file = 'conversion_list.yaml' self.task_config.save_list_file = 'save_list.yaml'