Skip to content

Commit

Permalink
using new app to create mom6 iau incr
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed Jul 6, 2023
1 parent fe2111d commit 2579f17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion parm/soca/variational/socaincr2mom6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vertical geometry:
soca increment:
date: '{{ATM_WINDOW_BEGIN}}'
basename: ./Data/
ocn_filename: 'ocn.3dvarfgat_pseudo.incr.{{ATM_WINDOW_MIDDLE}}.nc'
ocn_filename: 'ocn.3dvarfgat_pseudo.incr.{{ATM_WINDOW_BEGIN}}.nc'
read_from_file: 1

mom6 iau increment:
Expand Down
5 changes: 1 addition & 4 deletions scripts/exgdas_global_marine_analysis_chkpt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ EOF
--out "${mom6_iau_incr}" \
--nsst_yaml "nsst.yaml"
else
${HOMEgfs}/sorc/gdas.cd/ush/socaincr2mom6.py --incr "${soca_incr}" \
--bkg "${DATA}/INPUT/MOM.res.nc" \
--grid "${DATA}/soca_gridspec.nc" \
--out "${mom6_iau_incr}"
$APRUN_OCNANAL ${JEDI_BIN}/socaincr2mom6.x socaincr2mom6.yaml
fi
export err=$?
if [ $err -gt 0 ]; then
Expand Down
8 changes: 8 additions & 0 deletions scripts/exgdas_global_marine_analysis_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,14 @@ def find_clim_ens(input_date):
yaml.dump(soca2cice_cfg, f, sort_keys=False, default_flow_style=False)
ufsda.genYAML.genYAML('tmp.yaml', output=varchgyaml)

# prepare yaml for soca to MOM6 IAU increment
logging.info(f"---------------- generate soca to MOM6 IAU yaml")
socaincr2mom6_yaml = os.path.join(anl_dir, 'socaincr2mom6.yaml')
socaincr2mom6_yaml_template = os.path.join(gdas_home, 'parm', 'soca', 'variational', 'socaincr2mom6.yaml')
s2mconfig = YAMLFile(path=socaincr2mom6_yaml_template)
s2mconfig = Template.substitute_structure(s2mconfig, TemplateConstants.DOUBLE_CURLY_BRACES, envconfig.get)
s2mconfig.save(socaincr2mom6_yaml)

################################################################################
# Copy initial condition
ics_list = []
Expand Down

0 comments on commit 2579f17

Please sign in to comment.