E3SM-Project / e3sm_diags

E3SM Diagnostics package
https://e3sm-project.github.io/e3sm_diags
BSD 3-Clause "New" or "Revised" License
38 stars 31 forks source link

[Bug]: Incorrect variables being written to netCDF in `cosp_histogram_driver.py` #781

Closed tomvothecoder closed 6 months ago

tomvothecoder commented 6 months ago

What happened?

I'm trying to compare the results of spatial averaging on main against my branch in #748, but ran into this issue.

The domain variables are being written to netCDF rather than the domain mean variables.

https://github.com/E3SM-Project/e3sm_diags/blob/10377c0ba28ffcddcac8f73ccbd6fccd47ae7469/e3sm_diags/driver/cosp_histogram_driver.py#L114-L128

What did you expect to happen? Are there are possible answers you came across?

The domain mean variables should be written out to netCDF.

Minimal Complete Verifiable Example (MVCE)

No response

Relevant log output

No response

Anything else we need to know?

No response

Environment

main branch and latest e3sm_diags version