Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Conversation

@y-pohlmann-lintas
Copy link

The API of the copernicus Climate Data Store (CDS) was revised at the end of September.

The data format provided by the API for ERA5 data has also changed.

The column containing the time stamps is now no longer called “time” but “valid_time”.
This leads to errors when reformatting the data provided into the dataframe format.

As a solution, I suggest simply renaming the column to “time” when reformatting.

I have also added a test that checks the reformatting into the Pandas dataframe format.
Sample data is used for this.

@p-snft p-snft added the bug label Nov 15, 2024
@p-snft
Copy link
Member

p-snft commented Dec 2, 2024

The test pipeline is outdated. (Our fault.) Would you please merge dev? That should allow to run them, again.

valid_time
Comment on lines +382 to +384
#if 'valid_time' in ds:
# ds = ds.rename({'valid_time': 'time'})

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#if 'valid_time' in ds:
# ds = ds.rename({'valid_time': 'time'})

Commented out code should be removed.

@p-snft
Copy link
Member

p-snft commented Jun 26, 2025

One question: Is the change effecting only new data or is the name "time" changed to "valid_time" also if you download old datasets? If the latter is the case, I'd recommend to also change to "valid_time" here.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants