Skip to content

updates for averaging fields#21

Merged
mvertens merged 1 commit into
noresmfrom
feature/updates_for_anac
May 12, 2026
Merged

updates for averaging fields#21
mvertens merged 1 commit into
noresmfrom
feature/updates_for_anac

Conversation

@mvertens
Copy link
Copy Markdown
Collaborator

@mvertens mvertens commented May 10, 2026

Pull Request Summary

New fields to send to CMEPS to be written to cmeps auxiliary history files

Description

Need to following PRs to test:
cmeps: NorESMhub/CMEPS#48
ccs_config: NorESMhub/ccs_config_noresm#89

###Testing
./create_newcase --case <your_case> --compset 2000_DATM%JRA_SLND_SICE_SOCN_SROF_SGLC_WW3 --res TL319_ww3a --mach betzy --project <your_project> --run-unsupported
Verified that the resultant files test_ww3.cpl.hx.wav.24h.avg.0001-01-02-00000.nc contained 5 time samples (for daily output) and that the output looked reasonable

Comment on lines +2251 to +2252
xaccum(jsea) = xaccum(jsea) + cos( ww3data(jsea) )
yaccum(jsea) = yaccum(jsea) + sin( ww3data(jsea) )
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will this ever work? You are accumulating angle and it does not loop 0-360. I am a bit confused.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@mvdebolskiy - I did not implement this - so this is a question for @anacarras. @anacarras - can you please give us some feedback here.

@anacarras
Copy link
Copy Markdown
Collaborator

anacarras commented May 11, 2026 via email

@mvdebolskiy
Copy link
Copy Markdown
Collaborator

@anacarras yeah, it should never go into the edgecase of both xaccum and yaccum being zero, given the condition on counter.

@anacarras
Copy link
Copy Markdown
Collaborator

anacarras commented May 11, 2026 via email

@anacarras
Copy link
Copy Markdown
Collaborator

anacarras commented May 11, 2026 via email

@mvdebolskiy mvdebolskiy self-requested a review May 12, 2026 08:03
@mvdebolskiy
Copy link
Copy Markdown
Collaborator

@anacarras it's not possible, since it from the same angle, unless the angle value is somehow poisoned. It's fine though. You don't need to modify anything.

@mvertens mvertens merged commit 500ddc6 into noresm May 12, 2026
@anacarras
Copy link
Copy Markdown
Collaborator

anacarras commented May 17, 2026 via email

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.

3 participants