Skip to content

Add a callback/preprocess option to open_dataset #8197

Answered by keewis
ocefpaf asked this question in Q&A
Discussion options

You must be logged in to vote

xr.open_dataset(filename).pipe(preprocess) would be exactly the same (minus a bit of overhead), since open_mfdataset just opens all datasets (and decodes them), applies preprocess to each of them and then combines.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kmuehlbauer
Comment options

You must be logged in to vote
0 replies
Comment options

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

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
4 participants
Converted from issue

This discussion was converted from issue #4403 on September 17, 2023 16:01.