I have different .mat files such as
file_1.mat, file_2.mat, ..., file_n.mat with var1, var2, ..., varn in each file_x.mat. The variables do have the same name between the different files but not the same shape. However, their shape is equal within the same .mat file.
I usually load them in Python with spicy.io.loadmat() (documentation here) but I want to convert them to netcdf to use them later with xarray and accelerate my computation time. I was thinking some of you must have done this before me, jumping from Matlab to Python.
Is there any built-in function to do that ? Since my variables have the same name, I think something can be created with not too much difficulties, except we need to access the different dimensions of my variables depending on the file.
Thanks !!