I am currently trying to open multiple netCDF files. They all have same main dimension (which is just the number of rows), and multiple variables : time, platform_code, and other ones.
Here is the code I use for trying to concatenate all the datas:
ds_disk_merged = xarray.open_mfdataset([path1, path2, path3, path4], concat_dim="row", combine='nested')
When I take rows, everything is alright: I find my numpy array, concatenated as expected:
In [5]: ds_disk_merged.row.data
Out[5]: array([ 0, 1, 2, ..., 968041, 968042, 968043])
But when I take one of my variables, nothing is accessible:
In [6]: ds_disk_merged.time.data
Out[6]: dask.array<concatenate, shape=(968044,), dtype=datetime64[ns], chunksize=(253158,), chunktype=numpy.ndarray>
Do you know how to have all variables datas concatenated, following the same process as my rows do ?
As information, the number of rows for my files (path by path) are like this:
In [7]: all_nc_files_number_of_rows
Out[7]: [249499, 232995, 232392,253158]