-
Notifications
You must be signed in to change notification settings - Fork 176
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
base: develop
Are you sure you want to change the base?
Add domain level to wave gridded COM path #3137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WalterKolczynski-NOAA @JessicaMeixner-NOAA Did more changes. Let me know if you agree.
scripts/exgfs_wave_prdgen_gridded.sh
Outdated
echo "Directory ${!com_dir} created." | ||
else | ||
echo "Directory ${!com_dir} already exists." | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WalterKolczynski-NOAA I think this code should move to jobs\JGLOBAL_WAVE_PRDGEN_GRIDDED
. But, I don't know which var to use to define the COM paths. I know it is $grids
. But, $grids
is only defined in exgfs_wave_prdgen_gridded.sh
, not in any config files. Any idea what to do here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree it should be in the j-job. Move grids
to the parm file as GEMPAK_GRIDS
, then use that to construct the COM paths in the j-job (other instances of grids
in this script will obviously need to be updated as well).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tagging @AminIlia-NOAA for the prdgen job.
parm/archive/gfswave.yaml.j2
Outdated
@@ -1,20 +1,23 @@ | |||
gfswave: | |||
{% set head = "gfswave.t" + cycle_HH + "z." %} | |||
{% set grdNAME = "global.2p00" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WalterKolczynski-NOAA Agree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be waveGRD, but I would have to look closely to be 100% sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WalterKolczynski-NOAA waveGRD
is uglo_100km
. When used waveGRD
arch job fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be variable based on what waveinterpGRD and wavepostGRD are. I think you are hard-coding to specific cases instead of being generic here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, it should use whatever your new process_grdID
function spits out then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA waveinterpGRD
and wavepostGRD
are not environmental variables for arch
job. That's why I hard-coded it like that. Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add wave
to the list of config files sourced at the top of archive j-job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JessicaMeixner-NOAA One way to tackle this is as @WalterKolczynski-NOAA suggested, update the process_grdID
function or add another function to wave_domain_grid_res.sh
for arch
job.
@@ -2,6 +2,7 @@ | |||
{% set cycle_YMD = current_cycle | to_YMD %} | |||
{% set cycle_YMDH = current_cycle | to_YMDH %} | |||
{% set head = RUN + "wave.t" + cycle_HH + "z." %} | |||
{% set grdNAME = "global.5p00" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WalterKolczynski-NOAA Agree with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tagging @sbanihash for this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may need to be based on process_grdID
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is also incorrectly hard-coded and also should be variables.
parm/archive/gfswave.yaml.j2
Outdated
name: "GFSWAVE" | ||
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/gfswave.tar" | ||
required: | ||
# Wave GRIB2 regional forecast products | ||
{% set file_path = COMIN_WAVE_GRID ~ "/" ~ grdNAME %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COMIN_WAVE_GRID
should include the ${GRDNAME}_${GRDRES}
level when defined in the j-job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these updates @AntonMFernando-NOAA !
Please let me know when you're ready for me to do a new test with the multiple output grids.
@@ -2,6 +2,7 @@ | |||
{% set cycle_YMD = current_cycle | to_YMD %} | |||
{% set cycle_YMDH = current_cycle | to_YMDH %} | |||
{% set head = RUN + "wave.t" + cycle_HH + "z." %} | |||
{% set grdNAME = "global.5p00" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tagging @sbanihash for this as well.
scripts/exgfs_wave_prdgen_gridded.sh
Outdated
echo "Directory ${!com_dir} created." | ||
else | ||
echo "Directory ${!com_dir} already exists." | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tagging @AminIlia-NOAA for the prdgen job.
e8b4123
to
8528a8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WalterKolczynski-NOAA I think this is ready to be reviewed again.
@JessicaMeixner-NOAA You can run a new test with the multiple output grids, if you agree with the changes.
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 toCOM_ATMOS_GRIB_TMP
andCOM_ATMOS_GRIB_GRID_TMPL
) to include a directory level for the domain and resolutionChange characteristics
How has this been tested?
Checklist