- 积分
- 277
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-1-7
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-1-20 06:30:14
|
显示全部楼层
为什么数据上传了下载还要金钱。。。我只是想找人帮忙看看啊。。。粘贴到这里吧
F:\python\program\python.exe F:/python/project/mode_test_open_file.py
<class 'netCDF4._netCDF4.Dataset'>
root group (NETCDF4 data model, file format HDF5):
CDI: Climate Data Interface version 1.6.9 (http://mpimet.mpg.de/cdi)
history: Mon Oct 08 17:51:31 2018: cdo -s -L -f nc4 -remapbil,/tmpdata/regridder/services_14184/tmp.grid -select,name=O3,levidx=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42 /ftp/data/s4pa/MERRA2/M2I3NPASM.5.12.4/2012/01/MERRA2_400.inst3_3d_asm_Np.20120101.nc4 /tmpdata/regridder/services_14184/MERRA2_400.inst3_3d_asm_Np.20120101.SUB.nc4
Conventions: CF-1
History: Original file generated: Sun Jul 20 02:24:50 2014 GMT
Comment: GMAO filename: d5124_m2_jan10.inst3_3d_asm_Np.20120101.nc4
Filename: MERRA2_400.inst3_3d_asm_Np.20120101.nc4
Institution: NASA Global Modeling and Assimilation Office
References: http://gmao.gsfc.nasa.gov
Format: NetCDF-4/HDF-5
SpatialCoverage: global
VersionID: 5.12.4
TemporalRange: 1980-01-01 -> 2016-12-31
identifier_product_doi_authority: http://dx.doi.org/
ShortName: M2I3NPASM
GranuleID: MERRA2_400.inst3_3d_asm_Np.20120101.nc4
ProductionDateTime: Original file generated: Sun Jul 20 02:24:50 2014 GMT
LongName: MERRA2 inst3_3d_asm_Np: 3d,3-Hourly,Instantaneous,Pressure-Level,Assimilation,Assimilated Meteorological Fields
Title: MERRA2 inst3_3d_asm_Np: 3d,3-Hourly,Instantaneous,Pressure-Level,Assimilation,Assimilated Meteorological Fields
SouthernmostLatitude: -90.0
NorthernmostLatitude: 90.0
WesternmostLongitude: -180.0
EasternmostLongitude: 179.375
LatitudeResolution: 0.5
LongitudeResolution: 0.625
DataResolution: 0.5 x 0.625 (42 pressure levels)
Contact: http://gmao.gsfc.nasa.gov
identifier_product_doi: 10.5067/QBZ6MG944HW0
RangeBeginningDate: 2012-01-01
RangeBeginningTime: 00:00:00.000000
RangeEndingDate: 2012-01-01
RangeEndingTime: 21:00:00.000000
CDO: Climate Data Operators version 1.6.9 (http://mpimet.mpg.de/cdo)
dimensions(sizes): time(8), lev(42), lat(144), lon(288)
variables(dimensions): float32 O3(time,lev,lat,lon), float64 lat(lat), float64 lev(lev), float64 lon(lon), float64 time(time)
groups:
---------------------------------------
odict_keys(['O3', 'lat', 'lev', 'lon', 'time'])
O3
lat纬度
lev高度
lon经度
time
---------------------------------------
Traceback (most recent call last):
File "F:/python/project/mode_test_open_file.py", line 16, in <module>
print(nc_obj.variables['LAT'])
KeyError: 'LAT'
Process finished with exit code 1
这就是我说的那个nc文件我之前读取完以后获得的信息。
|
|