Skip to content

Follow-up modifications for GFS post process#2467

Closed
WenMeng-NOAA wants to merge 9 commits into
NOAA-EMC:developfrom
WenMeng-NOAA:post_gfs
Closed

Follow-up modifications for GFS post process#2467
WenMeng-NOAA wants to merge 9 commits into
NOAA-EMC:developfrom
WenMeng-NOAA:post_gfs

Conversation

@WenMeng-NOAA
Copy link
Copy Markdown
Contributor

Description

This PR is the follow-up modifications for gfs post process component:

Type of change

  • Bug fix (fixes something broken)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO

How has this been tested?

Yes, ran the 'JGLOBAL_ATMOS_PRODUCTS' job on WCOSS2

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here looks good.
The archive script should also be updated to ensure that these updated files are in the list of files that should be archived.
For reference, the archive script used is:
https://github.com/NOAA-EMC/global-workflow/blob/develop/ush/hpssarch_gen.sh

@WenMeng-NOAA
Copy link
Copy Markdown
Contributor Author

The changes here looks good. The archive script should also be updated to ensure that these updated files are in the list of files that should be archived. For reference, the archive script used is: https://github.com/NOAA-EMC/global-workflow/blob/develop/ush/hpssarch_gen.sh

@aerorahul Good catching. Updated hpssarch_gen.sh.

@aerorahul
Copy link
Copy Markdown
Contributor

The changes here looks good. The archive script should also be updated to ensure that these updated files are in the list of files that should be archived. For reference, the archive script used is: https://github.com/NOAA-EMC/global-workflow/blob/develop/ush/hpssarch_gen.sh

@aerorahul Good catching. Updated hpssarch_gen.sh.

A few more instances where sfluxgrb appears in hpssarch_gen.sh. Lines 398, 399, 411.

@WenMeng-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul

A few more instances where sfluxgrb appears in hpssarch_gen.sh. Lines 398, 399, 411.
Updated.

Copy link
Copy Markdown
Contributor

@KateFriedman-NOAA KateFriedman-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.

Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need some more updates for jobs to be triggered off the new names.
Also, analysis UPP needs to create the updated filename.

Comment thread scripts/exglobal_atmos_products.sh Outdated

# Files needed by ${INTERP_ATMOS_MASTERSH}
MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master.grb2${fhr3}"
MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master${fhr3}.grb2"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WenMeng-NOAA
The workflow looks for the master file to kick off the products generation job.
Please update this line to:

-                                   'history_file_tmpl': f'{self.cdump}.t@Hz.master.grb2#dep#'},
+                                   'history_file_tmpl': f'{self.cdump}.t@Hz.master#dep#.grb2'},

The analysis products job trigger also needs to be updated. Please update this line to:

-        data = f'{atm_master_path}/{self.cdump}.t@Hz.master.grb2anl'
+        data = f'{atm_master_path}/{self.cdump}.t@Hz.masteranl.grb2'

Finally, the offline UPP for analysis needs to write out the updated filename to COM. Please update these lines with:

-      - ["{{ DATA }}/GFSPRS.GrbF00", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.master.grb2anl"]
-      - ["{{ DATA }}/GFSPRS.GrbF00.idx", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.master.grb2ianl"]
+      - ["{{ DATA }}/GFSPRS.GrbF00", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.masteranl.grb2"]
+      - ["{{ DATA }}/GFSPRS.GrbF00.idx", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.masteranl.grb2.idx"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note more updates will be needed in the hpssarch_gen.sh for these changes in analysis filenames.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will work on that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WenMeng-NOAA
I just looked at the EE2 implementation standards and the correct extension for grib2 files is grib2. We should replace grb2 with grib2.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aerorahul Just confirm with you that updates will be in all master/flux/goes/pgrb2/pgrb2b.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aerorahul Updated.

@aerorahul
Copy link
Copy Markdown
Contributor

@WenMeng-NOAA
Similar workflow updates will be needed in gefs_tasks.py

Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some in hpssarch_gen.sh were left to be updated.

Comment thread ush/forecast_postdet.sh Outdated
Comment on lines +482 to +483
${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.masterf${FH3}.grb2" "GFSPRS.GrbF${FH2}"
${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxf${FH3}.grb2" "GFSFLX.GrbF${FH2}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.masterf${FH3}.grb2" "GFSPRS.GrbF${FH2}"
${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxf${FH3}.grb2" "GFSFLX.GrbF${FH2}"
${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.masterf${FH3}.grib2" "GFSPRS.GrbF${FH2}"
${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxf${FH3}.grib2" "GFSFLX.GrbF${FH2}"

Comment thread ush/hpssarch_gen.sh Outdated
Comment on lines +171 to +172
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2.idx"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2.idx"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grib2"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grib2.idx"

Comment thread ush/hpssarch_gen.sh Outdated
Comment on lines +398 to +399
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2.idx"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2.idx"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grib2"
echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grib2.idx"

Comment thread ush/hpssarch_gen.sh Outdated
flist="001 002 004 005 007 008"
for fhr in ${flist}; do
file="${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxgrbf${fhr}.grib2"
file="${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
file="${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2"
file="${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grib2"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aerorahul Updated.

Comment thread parm/post/upp.yaml Outdated
copy:
- ["{{ DATA }}/GFSPRS.GrbF00", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.master.grb2anl"]
- ["{{ DATA }}/GFSPRS.GrbF00.idx", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.master.grb2ianl"]
- ["{{ DATA }}/GFSPRS.GrbF00", "{{ COM_ATMOS_MASTER }}/{{ RUN }}.t{{ current_cycle | strftime('%H') }}z.masteranl.grib2"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a period separating the master/sflux from the anl/${fhr3} in all these just like the lat-lon files have.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WenMeng-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul @WalterKolczynski-NOAA Should all pgrb2/pgrb2b be changed as "gfs.t{CC}z.pgrb2a.?p??.f{FFF}.grib2" and gfs.t{CC}z.pgrb2b.?p??.f{FFF}.grib2"?

@WalterKolczynski-NOAA
Copy link
Copy Markdown
Contributor

@aerorahul @WalterKolczynski-NOAA Should all pgrb2/pgrb2b be changed as "gfs.t{CC}z.pgrb2a.?p??.f{FFF}.grib2" and gfs.t{CC}z.pgrb2b.?p??.f{FFF}.grib2"?

The target filenames for these are RUN.atmos.tHHz.pres_a.LpLL.fFFF.grib2 and RUN.atmos.tHHz.pres_b.LpLL.fFFF.grib2.idx. Changing these will require a lot of downstream changes in the secondary products (e.g. gempak).

@WalterKolczynski-NOAA
Copy link
Copy Markdown
Contributor

We have a spreadsheet documenting the planned filename changes (still in-progress and subject to change): https://docs.google.com/spreadsheets/d/1SzXQnfoUMF0W82Q906A7h9ZLA-vq59kjDH6EGRJuXDY

@WenMeng-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul @WalterKolczynski-NOAA Should all pgrb2/pgrb2b be changed as "gfs.t{CC}z.pgrb2a.?p??.f{FFF}.grib2" and gfs.t{CC}z.pgrb2b.?p??.f{FFF}.grib2"?

The target filenames for these are RUN.atmos.tHHz.pres_a.LpLL.fFFF.grib2 and RUN.atmos.tHHz.pres_b.LpLL.fFFF.grib2.idx. Changing these will require a lot of downstream changes in the secondary products (e.g. gempak).

@WalterKolczynski-NOAA I can only update file naming convention only in pgrb generation, which is included in my GFS post-processing standalone test. Please let me know your preferred approach.

@WalterKolczynski-NOAA
Copy link
Copy Markdown
Contributor

I've scheduled a brief meeting for 15:00 today to discuss. If that doesn't work, we can pick another time.

@aerorahul
Copy link
Copy Markdown
Contributor

awaiting finalizing filenames confirmation.

@aerorahul aerorahul closed this Apr 15, 2024
bbakernoaa pushed a commit to bbakernoaa/global-workflow that referenced this pull request Mar 19, 2026
…EMC#2475)

* UFSWM - Updates cpld_control_sfs to use the most up-to-date configuration specs
* UFSWM - Update units attributes in netCDF output to be machine-readable
  * FV3 - Update units attributes in netCDF output to be machine-readable
    * atmos_cubed_sphere - Update units attributes in netCDF output to be machine-readable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GFS job JGLOBAL_ATMOS_PRODUCTS failed at finding master and flux files

4 participants