Skip to content

open_mfdataset not returning all data #5659

Answered by TomNicholas
BrianBlanton asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Brian,

This line

xr.open_mfdataset(files, engine='cfgrib', preprocess=preprocess, concat_dim='step', parallel=False)

should be raising a warning for you:

"When combine='by_coords', passing a value for `concat_dim` has no "
"effect. This combination will raise an error in future. To manually "
"combine along a specific dimension you should instead specify "
"combine='nested' along with a value for `concat_dim`.",

because the default value of combine='by_coords' for this function. This also means the concatenation behaviour is probably not as you are expecting. Are you using the most recent version of xarray?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@BrianBlanton
Comment options

@TomNicholas
Comment options

@dcherian
Comment options

@BrianBlanton
Comment options

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