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

[Explore] Investigate the differences in xCDAT's annual cycle climatology compared to E3SM Diags climo.py/climo_xr.py and cdms2/cdutil #856

Open
tomvothecoder opened this issue Sep 30, 2024 Discussed in #845 · 0 comments

Comments

@tomvothecoder
Copy link
Collaborator

Discussed in #845

Originally posted by tomvothecoder September 4, 2024
This discussion is an extension of PR #688 in xCDAT.

Notes:

  • # NOTE: Since `time_bnds`` are decoded, the arithmetic to produce
    # `time_lengths` will result in the weighted averaging having an extremely
    # small floating point difference (1e-16+) compared to `climo.py`.
  • climo.py and climo_xr.py use masked arrays with masked averaging , while Xarray/xCDAT uses np.nan to represent missing values
  • Weight generation is different in CDAT (casts float32 to float64) (source)
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

No branches or pull requests

1 participant