python读取HDF文件
生活随笔
收集整理的這篇文章主要介紹了
python读取HDF文件
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
目錄
HDF文件介紹
PyTables
HDF文件及信息查看
HDF官網(wǎng):The HDF Group - ensuring long-term access and usability of HDF data and supporting users of HDF technologies
Hierarchical Data Format 層次型資料格式
很好用的信息查看軟件:HDFview
PyTables
官網(wǎng):Welcome to PyTables’ documentation! — PyTables 3.7.0 documentation
user guide:?PyTables User’s Guide — PyTables 3.7.0 documentation
import matplotlib.pyplot as plt from tables import *f="D:\Download\D202107180081468319/FY3C_MERSI_GBAL_L1_20150529_0210_0250M_MS.HDF"h5file=open_file(f, 'r')for group in h5file.walk_groups(): print(group)for node in h5file:print(node)dt= h5file.root.Data.EV_250_RefSB_b3 #(CArray(8000, 8192), zlib(5)) plt.contour(dt) plt.show()總結(jié)
以上是生活随笔為你收集整理的python读取HDF文件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 生产订单管理系统软件哪家好?
- 下一篇: HCL_路由器_OSPF配置