Skip to content

Commit

Permalink
move VarBcDir inside initialize_analysis method (NOAA-EMC#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Sep 10, 2024
1 parent 666d7d6 commit 1e4a284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ush/python/pygfs/task/atm_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def __init__(self, config: Dict[str, Any], yaml_name: Optional[str] = None):
'GPREFIX': f"gdas.t{self.task_config.previous_cycle.hour:02d}z.",
'atm_obsdatain_path': f"{self.task_config.DATA}/obs/",
'atm_obsdataout_path': f"{self.task_config.DATA}/diags/",
'BKG_TSTEP': "PT1H", # Placeholder for 4D applications
'VarBcDir': f"{self.task_config.COM_ATMOS_ANALYSIS_PREV}",
'BKG_TSTEP': "PT1H" # Placeholder for 4D applications
}
)

Expand Down Expand Up @@ -140,6 +139,7 @@ def initialize_analysis(self) -> None:

# stage bias corrections
logger.info(f"Staging list of bias correction files generated from JEDI config")
self.task_config.VarBcDir = f"{self.task_config.COM_ATMOS_ANALYSIS_PREV}"
bias_file = f"rad_varbc_params.tar"
self.jedi.get_bias(self.task_config, bias_file)

Expand Down
4 changes: 2 additions & 2 deletions ush/python/pygfs/task/atmens_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def __init__(self, config: Dict[str, Any], yaml_name: Optional[str] = None):
'GPREFIX': f"gdas.t{self.task_config.previous_cycle.hour:02d}z.",
'atm_obsdatain_path': f"./obs/",
'atm_obsdataout_path': f"./diags/",
'BKG_TSTEP': "PT1H", # Placeholder for 4D applications
'VarBcDir': f"{self.task_config.COM_ATMOS_ANALYSIS_PREV}",
'BKG_TSTEP': "PT1H" # Placeholder for 4D applications
}
)

Expand Down Expand Up @@ -139,6 +138,7 @@ def initialize_analysis(self) -> None:

# stage bias corrections
logger.info(f"Staging list of bias correction files generated from JEDI config")
self.task_config.VarBcDir = f"{self.task_config.COM_ATMOS_ANALYSIS_PREV}"
bias_file = f"rad_varbc_params.tar"
self.jedi.get_bias(self.task_config, bias_file)

Expand Down

0 comments on commit 1e4a284

Please sign in to comment.