Skip to content

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

@tomvothecoder

Description

@tomvothecoder

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions