I am finding a discrepancy in reading the files obtained from channelflow simulations by matlab with respect to the two formats (Matlab : ncread & h5read). I was finding a discrepancy in the two data sets, so I created a random field using the randomfield tool in NetCDF format and then converted the same using fieldconvert tool into HDF5. Further, I also tried to compare the data by reading the files directly in Python. Since the random filed contained the padded modes, I used the interpolate function with the python wrapper and interpolated the field onto a flowfield with 2/3Nx,2/3Nz.
The coordinate data from the HDF5 file matches with the one from Python but not when the NetCDF file is directly read by matlab using “ncread”. The attached file contains the properties of the two file formats generated using the “ncdisp” and “h5disp” commands from matlab. The difference is clearly shown.
Can you please clarify what is wrong here ?