Skip to content

Concatenate arrays to add timesteps #6608

Answered by keewis
hug-fr asked this question in Q&A
Discussion options

You must be logged in to vote

the coords and data_vars parameters of concat allow controlling what is concatenated. Usually, setting them to "minimal" should be enough:

new_ds = xr.concat([ds1, ds2], dim="time", data_vars="minimal", coords="minimal")

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hug-fr
Comment options

Answer selected by hug-fr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants