Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev/parm/config/gfs/config.snowanl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export APPLY_INCR_NML_TMPL="${PARMgfs}/gdas/snow/apply_incr_nml.j2"

export TASK_CONFIG_YAML="${PARMgfs}/gdas/snow/snow_det_config.yaml.j2"
export OBS_LIST_YAML="${PARMgfs}/gdas/snow/snow_obs_list.yaml.j2"
export ims_scf_obs_suffix="asc" # asc-ascii; nc-netcdf

export PREP_SNOCVR_SNOMAD_YAML="${PARMgfs}/gdas/snow/prep/prep_snocvr_snomad.yaml.j2"
export OBSBUILDER="${USHgfs}/bufr_snocvr_snomad.py"
Expand Down
11 changes: 5 additions & 6 deletions ush/python/pygfs/task/snow_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ def __init__(self, config: Dict[str, Any]):
_res = int(self.task_config['CASE'][1:])

# if 00z, do SCF preprocessing
_ims_file = os.path.join(self.task_config.COMIN_OBS, f'{self.task_config.OPREFIX}imssnow96.asc')
logger.info(f"Checking for IMS file: {_ims_file}")
if self.task_config.cyc == 0 and os.path.exists(_ims_file):
_DO_IMS_SCF = True
else:
_DO_IMS_SCF = False
_ims_file = os.path.join(
self.task_config.COMIN_OBS,
f'{self.task_config.OPREFIX}imssnow96.{self.task_config.ims_scf_obs_suffix}'
)
_DO_IMS_SCF = (self.task_config.cyc == 0 and os.path.exists(_ims_file))

# Extend task_config with variables repeatedly used across this class
self.task_config.update(AttrDict(
Expand Down
11 changes: 5 additions & 6 deletions ush/python/pygfs/task/snowens_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ def __init__(self, config: Dict[str, Any]):
_res = int(self.task_config['CASE_ENS'][1:])

# if 00z, do SCF preprocessing
_ims_file = os.path.join(self.task_config.COMIN_OBS, f'{self.task_config.OPREFIX}imssnow96.asc')
logger.info(f"Checking for IMS file: {_ims_file}")
if self.task_config.cyc == 0 and os.path.exists(_ims_file):
_DO_IMS_SCF = True
else:
_DO_IMS_SCF = False
_ims_file = os.path.join(
self.task_config.COMIN_OBS,
f'{self.task_config.OPREFIX}imssnow96.{self.task_config.ims_scf_obs_suffix}'
)
_DO_IMS_SCF = (self.task_config.cyc == 0 and os.path.exists(_ims_file))

# Extend task_config with variables repeatedly used across this class
self.task_config.update(AttrDict(
Expand Down
Loading