问题描述
我正在尝试使用pyhdf这样读取aura-omi swath文件(.he4)
filename="OMI-Aura_L1-OML1BRUG_2017m0413t2241-o62483_v003-2017m0515t061518.he4"
file_data = SD(filename,SDC.READ)
ddict=file_data.datasets()
latitude = file_date.select('Latitude')[:]
name,rank,dims,type,nattrs = file_data.select('Latitude').info()
当我看着ddict
时,看到了Latitude
键
'Latitude': (('nTimes:Earth UV-2 Swath','nXtrack:Earth UV-2 Swath'),(1644,60),5,19)
这意味着Latitude
数据集的形状应为(1644,60)
。
当我用
阅读时 name,nattrs = file_data.select('Latitude').info()
它显示dims=(1644,30)
,而file_data.select('Latitude')[:]
也给了我一个dims=(1644,30)
的数组
与其他语言一起阅读可以为我提供合适大小的数组dims=(1644,60)
。
我想念什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)