<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 宋体; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<table width="99.99%" height="100%" style="padding: 10px; background-color: transparent;" border="0" cellpadding="0" cellspacing="0" background="cid:_Foxmail.1@d4bbf1dc-e6dd-6172-ffc7-d7e68b0e77aa">
<tbody><tr>
<td valign="top" style="width:100%;height:100%;">
<div style="">
<div><span></span><br></div><div>after i have changed the suffix of <span style="background-color: transparent; font-size: 10.5pt; line-height: 1.5;">AMSR_E_L2A_201108010017_D.hdf into </span><span style="background-color: transparent; font-size: 10.5pt; line-height: 1.5;">AMSR_E_L2A_201108010017_D.hdf.hdfeos, there gave a </span></div><div><span style="font-size: 14px; line-height: 21px;">another variation, the "Time" variable has new variable names: </span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 14px; line-height: 1.5;"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 14px; line-height: 1.5;">double Time_High_Res_B_Swath ( DataTrack_lo_High_Res_B_Swath )</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 14px; line-height: 1.5;">double Time_High_Res_A_Swath ( DataTrack_lo_High_Res_A_Swath )</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 14px; line-height: 1.5;">double Time_Low_Res_Swath ( DataTrack_lo_Low_Res_Swath )</span></div><div><br></div>
<div>above these three variables didn't appear in hdf file but in hdfeos,this is a file format change.</div><div><br></div><div><br></div><div> </div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<div>dyjbean@gmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:lijpbasin@126.com">李嘉鹏</a></div><div><b>Date:</b> 2014-11-04 18:32</div><div><b>To:</b> <a href="mailto:ncl-talk@ucar.edu">ncl-talk</a></div><div><b>Subject:</b> Re: [ncl-talk] how to read a variable in group of hdf file?</div></div></div><div><div>Hi, Try `ncl_filedump AMSR_E_L2A_201108010017_D.hdf`, it might give you some hints of the corresponding variable name in NCL.</div>
<div> </div>
<div>On November 4, 2014 6:13:49 PM GMT+08:00, "dyjbean@gmail.com" <dyjbean@gmail.com> wrote:</div>
<div>>hi,</div>
<div>>i want to read a variable "Time" which is involved in group in a hdf</div>
<div>>file, a part of information of this hdf file is as follows:</div>
<div>>+++++++++++++++++++++++++++++++++++++++++++</div>
<div>>......</div>
<div>>GROUP=GeoField </div>
<div>>OBJECT=GeoField_1 </div>
<div>>GeoFieldName="Time" </div>
<div>>DataType=DFNT_FLOAT64 </div>
<div>>DimList=("DataTrack_lo") </div>
<div>>END_OBJECT=GeoField_1 </div>
<div>>OBJECT=GeoField_2 </div>
<div>>GeoFieldName="Latitude" </div>
<div>>DataType=DFNT_FLOAT32 </div>
<div>>DimList=("DataTrack_lo","DataXTrack_lo") </div>
<div>>END_OBJECT=GeoField_2 </div>
<div>>OBJECT=GeoField_3 </div>
<div>>GeoFieldName="Longitude" </div>
<div>>DataType=DFNT_FLOAT32 </div>
<div>>DimList=("DataTrack_lo","DataXTrack_lo") </div>
<div>>END_OBJECT=GeoField_3 </div>
<div>>END_GROUP=GeoField </div>
<div>>......</div>
<div>>++++++++++++++++++++++++++++++++++++++++++++++++++</div>
<div>></div>
<div>>i want to extract the "Time" in ncl, but it showed:</div>
<div>>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</div>
<div>></div>
<div>>ncl 0> ff=addfile("AMSR_E_L2A_201108010017_D.hdf","r") </div>
<div>>ncl 1> time=ff->Time </div>
<div>>fatal:["Execute.c":6321]:variable (Time) is not in file (ff) </div>
<div>>fatal:["Execute.c":8565]:Execute: Error occurred at or near line 1</div>
<div>>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</div>
<div>></div>
<div>>it seems that there doesn't exist "Time" variable in this hdf file,but</div>
<div>>it does,</div>
<div>></div>
<div>>how can i read this time info in ncl?</div>
<div>></div>
<div>></div>
<div>>thanks </div>
<div>></div>
<div>> </div>
<div>></div>
<div>></div>
<div>>dyjbean@gmail.com</div>
<div>></div>
<div>></div>
<div>>------------------------------------------------------------------------</div>
<div>></div>
<div>>_______________________________________________</div>
<div>>ncl-talk mailing list</div>
<div>>List instructions, subscriber options, unsubscribe:</div>
<div>>http://mailman.ucar.edu/mailman/listinfo/ncl-talk</div>
<div> </div>
<div> </div>
<div>_______________________________________________</div>
<div>ncl-talk mailing list</div>
<div>List instructions, subscriber options, unsubscribe:</div>
<div>http://mailman.ucar.edu/mailman/listinfo/ncl-talk</div>
</div></blockquote>
<div></div></div>
</td>
</tr>
</tbody></table>
</body></html>