【发布时间】:2018-03-05 17:51:13
【问题描述】:
我使用 python 从 netcdf4 文件中提取温度数据我使用了这些代码,但它只返回空值。
from netCDF4 import Dataset
nc = Dataset("GLDAS_NOAH025_3H.A20170102.0000.021.nc4","r")
for temp in nc.variables['AvgSurfT_inst'] :
print (temp)
输出:
[[[-- -- -- ..., -- -- --]
[-- -- -- ..., -- -- --]
[-- -- -- ..., -- -- --]
...,
[-- -- -- ..., -- -- --]
[-- -- -- ..., -- -- --]
[-- -- -- ..., -- -- --]]]
【问题讨论】:
-
据我所知,这篇文章没有问题。
-
如果你指向原始文件的位置,也许有人可以确认其中是否有任何未屏蔽的数据。
标签: python hdf5 netcdf netcdf4