Skip to content

Timestep manipulations #566

Answered by ecomodeller
Q-R-B asked this question in Q&A
Apr 25, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I am not sure I still get the problem, but you can certainly set or change the values of a datarray, the values attributes is a regular numpy array. Also for a specific timestep.

ds[0].values[1,:] = dsmax[0].values # set values of the second timestep to the aggregated values from other dataset
ds.to_dfs("newfile.dfsu")

Give it a try.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Q-R-B
Comment options

@ecomodeller
Comment options

Answer selected by Q-R-B
@Q-R-B
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants