I saved my numpy array to a binary file as np.save("image_mean.npy", averaged_mean). When I open the file, observed the bianry file's header as “NUMPY V {'descr': '<f8', 'fortran_order': False, 'shape': (3L, 704L, 1248L), }.
My query is what NUMPY V refers to?
If I want it as NUMPY F “NUMPY F {'descr': '<f8', 'fortran_order': False, 'shape': (3L, 704L, 1248L), }, how can I change in np.save API?
F? What do you think that will change in the file format? I think that theVis referring to version myself. Here is the documentation on .npynp.save.numpy.savewill save the file in "npy" format, which is not a raw binary file (thus the header). Instead, it has a header, etc. Instead, useyour_array.tofile(filename). To change the order to a fortran ordered array, you'd useyour_array.ravel(order='F').tofile(filename).