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

Draft
wants to merge 36 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

@@ -19,6 +19,14 @@ for out_dir in "${COMOUT_WAVE_PREP}" "${COMOUT_WAVE_GRID}"; do
if [[ ! -d "${out_dir}" ]]; then mkdir -p "${out_dir}"; fi
done

for grid in "0p25" "0p50" "1p00"; do
Copy link
Contributor

Choose a reason for hiding this comment

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

@AntonMFernando-NOAA I know this is a work in progress - but I was looking at this and I'm curious how these grids here were chosen? Especially as the description of the PR seems to imply that we'll use directory names such as global.0p16 or arctic.9km?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AntonMFernando-NOAA I know this is a work in progress - but I was looking at this and I'm curious how these grids here were chosen? Especially as the description of the PR seems to imply that we'll use directory names such as global.0p16 or arctic.9km?

@JessicaMeixner-NOAA Yes. I know. I was assigned this on Monday and I did some editing to start the PR. This is just for testing and get the idea what files need to be changed. Have to talk to Walter about this soon one I get the hang of it. Please ignore the first few commits I have made. Once I am ready will let you know for review.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds great @AntonMFernando-NOAA ! Let me know if there's anything I can help point out or explain for waves!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JessicaMeixner-NOAA Will do. Thank you .

Comment on lines 53 to 55
for grid in "0p25" "0p50" "1p00"; do
YMD=${PDY} HH=${cyc} GRID=${grid} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${grid}:COM_WAVE_GRID_RES_TMPL"
Copy link
Contributor

@WalterKolczynski-NOAA WalterKolczynski-NOAA Dec 4, 2024

Choose a reason for hiding this comment

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

Suggested change
for grid in "0p25" "0p50" "1p00"; do
YMD=${PDY} HH=${cyc} GRID=${grid} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${grid}:COM_WAVE_GRID_RES_TMPL"
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
case $grdID in
glo_15mxt) GRDRES=0p25;;
reg025) GRDRES=0p25;;
glo_025) GRDRES=0p25;;
glo_100) GRDRES=1p00;;
glo_200) GRDRES=2p00;;
glo_500) GRDRES=5p00;;
glo_30mxt) GRDRES=0p50;;
glo_30m) GRDRES=0p50;;
at_10m) GRDRES=0p16;;
ep_10m) GRDRES=0p16 ;;
wc_10m) GRDRES=0p16;;
ak_10m) GRDRES=0p16;;
ant_9km) GRDRES=9km;;
glo_10m) GRDRES=0p16;;
gnh_10m) GRDRES=0p16;;
gsh_15m) GRDRES=0p25;;
glo_15m) GRDRES=0p25;;
ao_20m) GRDRES=0p33;;
so_20m) GRDRES=0p33;;
gwes_30m) GRDRES=0p50;;
esac
YMD=${PDY} HH=${cyc} GRID=${GRDRES} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${grid}:COM_WAVE_GRID_RES_TMPL"

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
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

ShellCheck found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

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.

Add domain level to wave gridded COM path
3 participants