Skip to content

Commit 2dd94db

Browse files
shlyaevashlyaevaRussTreadon-NOAA
authored
Copy post-processed sea ice increment for diagnostics (#3235)
This change copies post-processed sea ice increment (the increment that was added to CICE restart files, as opposed to the raw increment that was produced by SOCA), so it can be used in the verification/diagnostics. It also cleans up previously committed code (removes a list of files where it's not needed anymore). Resolves NOAA-EMC/GDASApp#1402 --------- Co-authored-by: shlyaeva <[email protected]> Co-authored-by: RussTreadon-NOAA <[email protected]>
1 parent 3f4877f commit 2dd94db

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

ush/python/pygfs/task/marine_analysis.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -281,18 +281,19 @@ def _prep_checkpoint(self: Task) -> None:
281281
soca2cice_param = AttrDict({
282282
"ocn_ana": f"./Data/ocn.3dvarfgat_pseudo.an.{self.task_config.MARINE_WINDOW_MIDDLE_ISO}.nc",
283283
"ice_ana": f"./Data/ice.3dvarfgat_pseudo.an.{self.task_config.MARINE_WINDOW_MIDDLE_ISO}.nc",
284+
"ocn_inc": f"./Data/ocn.3dvarfgat_pseudo.incr.{self.task_config.MARINE_WINDOW_MIDDLE_ISO}.nc",
285+
"ice_inc": f"./Data/ice.3dvarfgat_pseudo.incr.{self.task_config.MARINE_WINDOW_MIDDLE_ISO}.nc",
284286
"ice_rst": ice_rst_ana,
285287
"fcst_begin": fcst_begin
286288
})
287289
logger.debug(f"{soca2cice_param}")
288290

289291
# render the SOCA to CICE YAML file for the Arctic and Antarctic
290292
logger.info("render the SOCA to CICE YAML file for the Arctic and Antarctic")
291-
varchgyamls = ['soca_2cice_global.yaml']
292-
for varchgyaml in varchgyamls:
293-
soca2cice_config = parse_j2yaml(path=os.path.join(self.task_config.MARINE_JCB_GDAS_ALGO, f'{varchgyaml}.j2'),
294-
data=soca2cice_param)
295-
soca2cice_config.save(os.path.join(self.task_config.DATA, varchgyaml))
293+
varchgyaml = 'soca_2cice_global.yaml'
294+
soca2cice_config = parse_j2yaml(path=os.path.join(self.task_config.MARINE_JCB_GDAS_ALGO, f'{varchgyaml}.j2'),
295+
data=soca2cice_param)
296+
soca2cice_config.save(os.path.join(self.task_config.DATA, varchgyaml))
296297

297298
@logit(logger)
298299
def variational(self: Task) -> None:
@@ -388,6 +389,10 @@ def list_all_files(dir_in, dir_out, wc='*', fh_list=[]):
388389
post_file_list.append([os.path.join(anl_dir, 'Data', f'{domain}.3dvarfgat_pseudo.an.{mdate}.nc'),
389390
os.path.join(com_ocean_analysis, f'{RUN}.t{cyc}z.{domain}ana.nc')])
390391

392+
# Copy soca2cice ice increment
393+
post_file_list.append([os.path.join(anl_dir, 'Data', f'ice.soca2cice.incr.{bdate}.nc'),
394+
os.path.join(com_ocean_analysis, f'{RUN}.t{cyc}z.ice.incr.postproc.nc')])
395+
391396
# Copy of the ssh diagnostics
392397
if nmem_ens > 2:
393398
for string in ['ssh_steric_stddev', 'ssh_unbal_stddev', 'ssh_total_stddev', 'steric_explained_variance']:

0 commit comments

Comments
 (0)