Skip to content

Commit

Permalink
Update fv3_cold yaml
Browse files Browse the repository at this point in the history
Update to use mkdir and copy instead of target and required

Refs NOAA-EMC#2475
  • Loading branch information
KateFriedman-NOAA committed May 22, 2024
1 parent 0176d2e commit 4861ed1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions parm/stage/fv3_cold.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
# for ftype in ['atmi003.nc', 'atminc.nc', 'atmi009.nc']:
# if inputs.nens > 0:
#for ftype in ['ratmi003.nc', 'ratminc.nc', 'ratmi009.nc']
{% set cycle_HH = current_cycle | strftime("%H") %}
{% set cycle_YMD = current_cycle | to_YMD %}
{% set cycle_YMDH = current_cycle | to_YMDH %}
fv3_cold:
name: "FV3_COLD"
target: "{{ COM_ATMOS_INPUT }}"
required:
- "{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/atmos/gfs_ctrl.nc"
mkdir:
- "{{ COM_ATMOS_INPUT }}"
copy:
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/atmos/gfs_ctrl.nc", "{{ COM_ATMOS_INPUT }}/gfs_ctrl.nc"]
{% for ftype in ["gfs_data", "sfc_data"] %}
{% for ntile in range(1, ntiles + 1) %}
- "{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/atmos/{{ ftype }}.tile{{ ntile }}.nc"
- ["{{ BASE_CPLIC }}/{{ CPL_ATMIC }}/{{ cycle_YMD }}{{ cycle_HH }}/atmos/{{ ftype }}.tile{{ ntile }}.nc", "{{ COM_ATMOS_INPUT }}/{{ ftype }}.tile{{ ntile }}.nc"]
{% endfor %} # ntile
{% endfor %} # ftype

0 comments on commit 4861ed1

Please sign in to comment.