Skip to content

Mean-trend-removal accuracy #52

Description

@Oseltamivir

Hi,

Just wanted to let the team know about a small error I noticed in mean trend removal.

For the SCC zero-stage-generation branch, this was being used:

if ((j % 2) == 0) {
    matrix[idx] = std::sin(angle);
} else {
    matrix[idx] = std::cos(angle);
}

But it should be

if ((j % 2) == 0) {
    matrix[idx] = std::cos(angle);
} else {
    matrix[idx] = std::sin(angle);
}

Attached are the images showing the difference. I am not sure if current main still has this error. I noticed this error due to the obvious phase shift when the temperatures are plotted.

Image Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions