Skip to content

eof show different result depending on version #159

@jiwon-j

Description

@jiwon-j

hello,
i found that the result from eofs.xarray show the different result depending on the xarray version.
I'm curious what has been updated to produce different results.

the versions i compared are,
type 1)
Python 3.9.16
xarray 2022.11.0
eofs 1.4.0
type 2)
Python 3.10.13
xarray 2025.4.0
eofs 1.4.0

The version of the eofs library hasn't changed, so I wondered if it was an issue with the xarray version, but I've confirmed that there is no difference as far as loading the data goes.
Is it possible that the results will vary depending on the Python version?

Here's the situation in detail.
I ran EOF on 100 ensemble members of CESM2:
Regardless of which variables I use, the first time step (1850) produces all negative values.
This is happening on version type 1.
When I checked PC1, it outputs the same values, but only the sign is all negative.
If i proceed in type 2 with all conditions and code identical, the problem does not occur.

type 1 results)

Image Image Image value range for each time step among 100 ensemble members

type 2 results)

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions