Numpy *.npz internal file structure

后端 未结 2 2064
我寻月下人不归
我寻月下人不归 2021-02-19 14:18

can anyone share some info about internal data organization in *.npz ? Some documentation etc.. Just can\'t find anything..

相关标签:
2条回答
  • 2021-02-19 15:02

    npz is a simple zip archive, which contains numpy files. Simple review of internal structure of ZIP can be found here http://en.wikipedia.org/wiki/ZIP_(file_format)

    0 讨论(0)
  • 2021-02-19 15:06

    Here are the docs:

    • Format of .npz files, referring to the
    • Format of .npy files

    That said, I would not recommend trying to read or write files in this format yourself. It's fine for writing from NumPy and reading in with NumPy again. But if you want to write or read a file from a different environment, then use a more standard format like HDF5 or NetCDF which is supported by both environments.

    0 讨论(0)
提交回复
热议问题