Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add domain level to wave gridded COM path #3137

Open
wants to merge 222 commits into
base: develop
Choose a base branch
from

Conversation

AntonMFernando-NOAA
Copy link
Contributor

@AntonMFernando-NOAA AntonMFernando-NOAA commented Dec 3, 2024

Description

  • This pull request addresses the organization of wave gridded products within the file structure. Currently, all wave gridded products are placed in products/wave/gridded, without any further categorization. To align with the structure used by other component products (such as grib2), this update introduces a domain/resolution directory level to group output more effectively.

  • For example, instead of having all products in a single directory, the structure will now include specific directories based on domain and resolution (e.g., products/wave/gridded/arctic.9km, products/wave/gridded/global.0p16). This change improves organization and scalability for wave gridded product outputs.

  • Resolves Add domain level to wave gridded COM path #2677

Type of change

  • COM_WAVE_GRID_TMPL updated (or a new template, similar to COM_ATMOS_GRIB_TMP and COM_ATMOS_GRIB_GRID_TMPL) to include a directory level for the domain and resolution
  • Gridded wave output placed into separate directories based on domain/resolution within products/wave/gridded
  • Output otherwise remain unchanged

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO
  • Does this change require an update to any of the following submodules? NO

How has this been tested?

  • CI tests with HERA and HERCULES

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
  • I have documented my code, including function, input, and output descriptions
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • This change is covered by an existing CI test or a new one has been added
  • Any new scripts have been added to the .github/CODEOWNERS file with owners
  • I have made corresponding changes to the system documentation if necessary

jobs/JGLOBAL_ARCHIVE Fixed Show fixed Hide fixed
jobs/JGLOBAL_ARCHIVE Fixed Show fixed Hide fixed
jobs/JGLOBAL_ARCHIVE Fixed Show fixed Hide fixed
jobs/JGLOBAL_WAVE_POST_SBS Fixed Show fixed Hide fixed
@AntonMFernando-NOAA
Copy link
Contributor Author

@JessicaMeixner-NOAA Ready to run for multi-grids.

Copy link
Contributor

@DavidHuber-NOAA DavidHuber-NOAA left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@WalterKolczynski-NOAA WalterKolczynski-NOAA left a comment

Choose a reason for hiding this comment

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

wave_domain_grid.sh should only need to be sourced once in each job. For consistency, please place it at the job of the j-job right after the j-job header.

Other requests are minor, then we can get this thing tested.

Comment on lines 23 to 24
for grdID in ${GEMPAK_GRIDS}; do
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

Suggested change
for grdID in ${GEMPAK_GRIDS}; do
source "${USHgfs}/wave_domain_grid.sh"
for grdID in ${GEMPAK_GRIDS}; do

Comment on lines 56 to 57
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
source "${USHgfs}/wave_domain_grid.sh"
for grdID in ${wavepostGRD} ${waveinterpGRD}; do

Comment on lines 23 to 24
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Add the source "${USHgfs}/wave_domain_grid.sh" right after the jjob header.

Suggested change
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
source "${USHgfs}/wave_domain_grid.sh"
for grdID in ${wavepostGRD} ${waveinterpGRD}; do

Comment on lines 240 to 245
gfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${waveGRD}.${YMD}.${HMS}"
if [[ ! -s "${gfile}" ]]; then
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE ${gfile}"
err=3; export err; "${errchk}"
exit "${err}"
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
gfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${waveGRD}.${YMD}.${HMS}"
if [[ ! -s "${gfile}" ]]; then
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE ${gfile}"
err=3; export err; "${errchk}"
exit "${err}"
fi
gfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${waveGRD}.${YMD}.${HMS}"
if [[ ! -s "${gfile}" ]]; then
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE ${gfile}"
err=3; export err; "${errchk}"
exit "${err}"
fi

jobs/JGLOBAL_ARCHIVE Show resolved Hide resolved
@@ -8,6 +8,9 @@ echo "BEGIN: config.waveawipsgridded"
# Get task specific resources
. $EXPDIR/config.resources waveawipsgridded

export DBNROOT=/dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

DBNROOT is set by config.base and definitely should not be changed.

Suggested change
export DBNROOT=/dev/null

echo "${USHgfs}/wave_grib2_sbs.sh $grdID $GRIDNR $MODNR $ymdh $fhr $GRDNAME $GRDRES $gribFL > grib_$grdID.out 2>&1" >> ${fcmdnow}
done
fi
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
source "${USHgfs}/wave_domain_grid.sh"

for grdID in ${wavepostGRD} # First concatenate grib files for sbs grids
do
gribFL=\'$(echo ${OUTPARS_WAV})\'
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
source "${USHgfs}/wave_domain_grid.sh"

echo "FATAL ERROR Unrecognized input grid ${grid_in}"
exit 2;;
esac
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
source "${USHgfs}/wave_domain_grid.sh"

*) grdID= ;;
esac
#
source "${USHgfs}/wave_domain_grid.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
source "${USHgfs}/wave_domain_grid.sh"

@WalterKolczynski-NOAA WalterKolczynski-NOAA added the CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera label Jan 16, 2025
@emcbot emcbot added CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress and removed CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera labels Jan 16, 2025
@emcbot
Copy link

emcbot commented Jan 16, 2025

Experiment C96_S2SWA_gefs_replay_ics FAILED on Hera in Build# 1 with error logs:

/scratch1/NCEPDEV/global/CI/3137/RUNTESTS/COMROOT/C96_S2SWA_gefs_replay_ics_8615cdff/logs/2020110100/gefs_extractvars_mem000.log
/scratch1/NCEPDEV/global/CI/3137/RUNTESTS/COMROOT/C96_S2SWA_gefs_replay_ics_8615cdff/logs/2020110100/gefs_extractvars_mem001.log

Follow link here to view the contents of the above file(s): (link)

@emcbot emcbot added CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed and removed CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress labels Jan 16, 2025
@emcbot
Copy link

emcbot commented Jan 16, 2025

Experiment C96_S2SWA_gefs_replay_ics FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/3137/RUNTESTS/EXPDIR/C96_S2SWA_gefs_replay_ics_8615cdff

@WalterKolczynski-NOAA
Copy link
Contributor

The extractvar job either needs to be removed or updated for the new gridded wave product path.

@emcbot emcbot added CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed and removed CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed labels Jan 16, 2025
@emcbot
Copy link

emcbot commented Jan 16, 2025

CI Failed on Hera in Build# 1
Built and ran in directory /scratch1/NCEPDEV/global/CI/3137


Experiment C96_S2SWA_gefs_replay_ics_8615cdff Terminated with 0
FAIL
FAIL tasks failed and 2 dead at Thu Jan 16 20:52:47 UTC 2025
Experiment C96_S2SWA_gefs_replay_ics_8615cdff Terminated: *FAIL*
Error logs:
/scratch1/NCEPDEV/global/CI/3137/RUNTESTS/COMROOT/C96_S2SWA_gefs_replay_ics_8615cdff/logs/2020110100/gefs_extractvars_mem000.log
/scratch1/NCEPDEV/global/CI/3137/RUNTESTS/COMROOT/C96_S2SWA_gefs_replay_ics_8615cdff/logs/2020110100/gefs_extractvars_mem001.log
Experiment C48mx500_3DVarAOWCDA_8615cdff Completed 2 Cycles: *SUCCESS* at Thu Jan 16 21:35:35 UTC 2025
Experiment C48_ATM_8615cdff Completed 2 Cycles: *SUCCESS* at Thu Jan 16 21:53:56 UTC 2025
Experiment C48mx500_hybAOWCDA_8615cdff Completed 2 Cycles: *SUCCESS* at Thu Jan 16 21:53:56 UTC 2025
Experiment C96C48_hybatmaerosnowDA_8615cdff Completed 3 Cycles: *SUCCESS* at Thu Jan 16 23:02:06 UTC 2025
Experiment C48_S2SWA_gefs_8615cdff Completed 1 Cycles: *SUCCESS* at Thu Jan 16 23:06:26 UTC 2025
Experiment C96_atm3DVar_8615cdff Completed 3 Cycles: *SUCCESS* at Thu Jan 16 23:08:32 UTC 2025
Experiment C96C48_hybatmDA_8615cdff Completed 3 Cycles: *SUCCESS* at Thu Jan 16 23:14:48 UTC 2025
Experiment C48_S2SW_8615cdff Completed 2 Cycles: *SUCCESS* at Thu Jan 16 23:20:54 UTC 2025
Experiment C96C48_ufs_hybatmDA_8615cdff Completed 3 Cycles: *SUCCESS* at Thu Jan 16 23:45:29 UTC 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add domain level to wave gridded COM path
6 participants