Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Bug in the calculation of the avg daysSinceStartOfSim in the timeSeriesStats AM #1205

@milenaveneziani

Description

@milenaveneziani

This issue was discovered while debugging the MPAS-Analysis, and using ACME output data. A close look at the variable timeMonthly_avg_daysSinceStartOfSim revealed that the quantity starts out fine in year 1 (~15 days for month 1, year 1), but then is gradually reduced as the simulation year increases (by a factor that is not clear to me). By the time we get to year 50, a dump of the variable in the 0051-01-01 file gives the following value: 18240.9498811632, which corresponds to 49 years and ~356 days, so we are in December of year 50 rather than in mid January of year 51 as one would expect. This bug is also present in the MPAS-SI timeSeriesStats AM, and again it was found within ACME (not sure if we have the same thing in MPAS standalone).

Since the updated timeSeriesStats AM's now also have xtime_start and xtime_end, this bug will no longer be relevant for the analysis (especially after both MPAS-O and MPAS-SI have identical timeSeriesStats AM's). But it should be investigated nonetheless.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions