简体   繁体   中英

MODIS(MYD06_L2) file concatenation using xarray and dask

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}

Correct. I believe that the xarray.open_mfdataset function expects that all dimensions other than the concatenated dimension are the same in all files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM