I am having trouble reading in a binary file in python and plotting it. itIt is supposedly a unformatedan unformatted binary file representing a 1000x1000 array of integers. I have used:
image = open("file.dat", "r")
a = np.fromfile(image, dtype=np.uint32)
but printingPrinting the length only says itsreturns 500000 and i. I cannot figure out how to create a 2d2D array out of it as well.
thanks for the help.