Skip to content

concatenating datasets along the time dimension when the time units change in each dataset #669

Closed Answered by rsignell
rsignell asked this question in Q&A
Discussion options

You must be logged in to vote

Ugh, I had the loadable_variables as a dict, not a list. This works!

ds_list = [vz.open_virtual_dataset(f's3://{url}', reader_options=ro, indexes={}, decode_times=True, loadable_variables=['time'])) for url in flist]

combined_ds = xr.concat(
    ds_list, 
    dim='time', 
    coords='minimal', 
    compat='override', 
    combine_attrs='override')

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rsignell
Comment options

rsignell Jul 11, 2025
Maintainer Author

Comment options

rsignell
Jul 11, 2025
Maintainer Author

You must be logged in to vote
1 reply
@rsignell
Comment options

rsignell Jul 11, 2025
Maintainer Author

Answer selected by maxrjones
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