Reputation: 21
I try to open multiple MODIS files (MYD06_L2) using xarray (xr.open_mfdataset)
.
I can open a single file or may be some files but i am not able to open many files or one day file as they have different dimensions.
d06 = xr.open_mfdataset(M06_2040, concat_dim= 'None', parallel=True)
['Cloud_Mask_1km'][:,:,:,0].values
Here M06_2040
is the directory of the files
I end up with the following error:
ValueError: arguments without labels along dimension 'Cell_Along_Swath_1km:mod06' cannot be aligned because they have different dimension sizes: {2040, 2030}
Upvotes: 2
Views: 263
Reputation: 57281
Correct. I believe that the xarray.open_mfdataset
function expects that all dimensions other than the concatenated dimension are the same in all files.
Upvotes: 2