Skip to content

Conversation

@eclare108213
Copy link
Contributor

@eclare108213 eclare108213 commented Sep 30, 2025

  • Short (1 sentence) summary of your PR:
    Mathematical description of various averages in space and time
  • Developer(s):
    @eclare108213
  • Suggest PR reviewers from list in the column to the right.
  • Please copy the PR test results link or provide a summary of testing completed below.
    No changes to code, only documentation. See section 4.9.3 in https://cice-consortium-cice--1056.org.readthedocs.build/en/1056/developer_guide/dg_other.html.
  • How much do the PR code changes differ from the unmodified code?
    • bit for bit
    • different at roundoff level
    • more substantial
  • Does this PR create or have dependencies on Icepack or any other models?
    • Yes
    • No
  • Does this PR update the Icepack submodule? If so, the Icepack submodule must point to a hash on Icepack's main branch.
    • Yes
    • No
  • Does this PR add any new test cases?
    • Yes
    • No
  • Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/. A test build of the technical docs will be performed as part of the PR testing.)
    • Yes
    • No, does the documentation need to be updated at a later time?
      • Yes
      • No
  • Please document the changes in detail, including why the changes are made. This will become part of the PR commit log.
    There is a great deal of confusion about how various history variables are time-averaged, e.g. SIMIP history output implementation #1038, Fixes for sitemptop, sitempbot, and sitempsnic. #1054. This PR attempts to clarify the situation. These averages are also relevant for conservative coupling.

@eclare108213
Copy link
Contributor Author

Once this is all written out, it is obvious, but there seems to always be confusion about what is an ice average versus a cell average, when to multiply or divide by ice area when time averaging, what to do with various kinds of tracers, etc, so I think this documentation could be useful to users and developers. It's more detailed than necessary, but some of the confusion is because those details aren't always clear (e.g. sum(a_n) = 1 when summed over the whole grid cell and the grid cell areas cancel, which obfuscates the units).

@dabail10 I did not attempt to insert the 'intrinsic' and 'extrinsic' labels, but we could if it's helpful. I hope these definitions are indeed what SIMIP recommends!

I'm sure you'll all point out typos and other errors...

Copy link
Contributor

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

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

This look useful - thanks @eclare108213 !

Is it worth having a seperate page now for history output ? (Although this content is a bit more general - its true for all cases of averaging of quantities right ?)

\bar{V}_{i} = {\int_t \int_{cell} \int_{0}^{h} g(\mathbf{X},t) \, dz \, d\mathbf{X} \, dt \over \int_{t} dt}
\sim {\sum_{\Delta t} \sum_{n=1}^{ncat} h_n \, a_n \, A \, \Delta t \over N \, \Delta t}
= {A \over N} \sum_{\Delta t} \sum_{n=1}^{ncat} h_n \, a_n
Copy link
Contributor

Choose a reason for hiding this comment

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

I think v and V need a definition ?

\sim \frac{ \sum_{n=1}^{ncat} T_n \, a_n \, }{ \sum_{n=1}^{ncat} a_n}
then the ice-averaged quantity must be multiplied by the ice area to return it to the cell-averaged quantity (assuming
a value of zero in open water) before being accumulated in time and divided once again by the ice area:
Copy link
Contributor

Choose a reason for hiding this comment

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

a value of zero in open water) before being accumulated in time and divided once again by the ice area:

I think this line needs a bit more introduction - its not clear why we are now talking about accumulating in time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants