- 积分
- 25858
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-8-28
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在用NCL读取HDF4数据时,它的group名称始终输入不对,求大神解答!
HDF4数据说明文件:
Variable: f
Type: file
filename: NPR.AAOP.NN.D19001.S0000.E0155.B7017071
path: NPR.AAOP.NN.D19001.S0000.E0155.B7017071.hdf
file global attributes:
HDFEOSVersion : HDFEOS_V2.17
StructMetadata_0 : GROUP=SwathStructure
GROUP=SWATH_1
SwathName="AMSUA_Swath"
GROUP=Dimension
OBJECT=Dimension_1
DimensionName="Scanline"
Size=861
END_OBJECT=Dimension_1
OBJECT=Dimension_2
DimensionName="Field_of_view"
Size=30
END_OBJECT=Dimension_2
OBJECT=Dimension_3
DimensionName="Position1"
Size=861
END_OBJECT=Dimension_3
OBJECT=Dimension_4
DimensionName="Position2"
Size=30
END_OBJECT=Dimension_4
END_GROUP=Dimension
GROUP=DimensionMap
OBJECT=DimensionMap_1
GeoDimension="Position1"
DataDimension="Scanline"
Offset=0
Increment=1
END_OBJECT=DimensionMap_1
OBJECT=DimensionMap_2
GeoDimension="Position2"
DataDimension="Field_of_view"
Offset=0
Increment=1
END_OBJECT=DimensionMap_2
END_GROUP=DimensionMap
GROUP=IndexDimensionMap
END_GROUP=IndexDimensionMap
GROUP=GeoField
OBJECT=GeoField_1
GeoFieldName="ScanTime_year"
DataType=DFNT_INT16
DimList=("Position1")
END_OBJECT=GeoField_1
OBJECT=GeoField_2
GeoFieldName="ScanTime_month"
DataType=DFNT_INT8
DimList=("Position1")
END_OBJECT=GeoField_2
OBJECT=GeoField_3
GeoFieldName="ScanTime_dom"
DataType=DFNT_INT8
DimList=("Position1")
END_OBJECT=GeoField_3
OBJECT=GeoField_4
GeoFieldName="ScanTime_hour"
DataType=DFNT_INT8
DimList=("Position1")
END_OBJECT=GeoField_4
OBJECT=GeoField_5
GeoFieldName="ScanTime_minute"
DataType=DFNT_INT8
DimList=("Position1")
END_OBJECT=GeoField_5
OBJECT=GeoField_6
GeoFieldName="ScanTime_second"
DataType=DFNT_INT8
DimList=("Position1")
END_OBJECT=GeoField_6
OBJECT=GeoField_7
GeoFieldName="ScanTime_doy"
DataType=DFNT_INT16
DimList=("Position1")
END_OBJECT=GeoField_7
OBJECT=GeoField_8
GeoFieldName="Latitude"
DataType=DFNT_FLOAT32
DimList=("Position1","Position2")
END_OBJECT=GeoField_8
OBJECT=GeoField_9
GeoFieldName="Longitude"
DataType=DFNT_FLOAT32
DimList=("Position1","Position2")
END_OBJECT=GeoField_9
OBJECT=GeoField_10
GeoFieldName="Time"
DataType=DFNT_FLOAT64
DimList=("Position1")
END_OBJECT=GeoField_10
END_GROUP=GeoField
我的代码:
fili = "NPR.AAOP.NN.D19001.S0000.E0155.B7017071.hdf"
f = addfile (fili, "r")
lat = f->Latitude(:,14:15)
lon = f->Longitude(:,14:15)
g = f=>/AMSUA_Swath/GeoField
year= g->ScanTime_year
报错一直说ScanTime_year不在g中。
(我用f=>/SWATH_1/GeoField也不对)
|
|