-
Notifications
You must be signed in to change notification settings - Fork 446
EAMxx: fix diag naming for vert_contract and allow 1d wts #7507
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
EAMxx: fix diag naming for vert_contract and allow 1d wts #7507
Conversation
meng630
left a comment
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.
Looks good and fixed #7265 (comment)
|
@mahf708 Apologies that I got things mixed up. There's still an issue with remapping raw model simulations to target grids, say from |
|
Hmmm... @bartgol any idea?
|
|
I'm not sure. But this is likely indep of resolution, so you can just run ne4, and use one of our ne4->ne2 map files, to get faster debug cycles. Then, either stuff a bunch of print out statements here/there or run through gdb and manually inspect stuff. |
|
|
@meng630 I couldn't reproduce your error (see my test file below) output.yaml
%YAML 1.1
---
filename_prefix: new_test
horiz_remap_file: /global/cfs/cdirs/e3sm/inputdata/atm/scream/maps/map_ne4pg2_to_ne2pg2_c20240902.nc
iotype: pnetcdf
averaging_type: average
max_snapshots_per_file: 1 # only one snapshot per file
fields:
physics_pg2:
field_names:
- T_mid_vert_avg_dp_weighted
- T_mid_vert_avg_dz_weighted
- T_mid_vert_sum_dz_weighted
output_control:
frequency: 1
frequency_units: nsteps
restart:
force_new_file: true
new_test.AVERAGE.nsteps_x1.0001-01-01-00000
@bartgol, you're not completely out of the woods yet ;):P the hremap cannot handle rank-0 fields, trying T_mid_vert_sum_dz_weighted_horiz_avg in the above erros when hremapping, but is ok otherwise |
Do you have a stack trace for that? My guess is that it's the same issue that the abstract grid mods in PR #7515 are addressing. Can you just try to cherry pick the commit that touches |
meng630
left a comment
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 @mahf708 for digging into this. It works well, and I believe it's ready to be merged.
Fixes #7506
Fixes #7510
[BFB]