Finding shape of saved numpy array (.npy or .npz) without loading into memory

Viewed 4464

I have a huge compressed numpy array saved to disk (~20gb in memory, much less when compressed). I need to know the shape of this array, but I do not have the available memory to load it. How can I find the shape of the numpy array without loading it into memory?

2 Answers
Related