[ncl-talk] how to read a variable in group of hdf file?

dyjbean at gmail.com dyjbean at gmail.com
Tue Nov 4 04:28:28 MST 2014


the file information in my letter is shown with ncl_filedump, the "Time" variable is as the aforementioned, there
didn't find another compound variable like "Time"



dyjbean at gmail.com
 
From: 李嘉鹏
Date: 2014-11-04 18:32
To: ncl-talk
Subject: Re: [ncl-talk] how to read a variable in group of hdf file?
Hi, Try `ncl_filedump AMSR_E_L2A_201108010017_D.hdf`, it might give you some hints of the corresponding variable name in NCL.
 
On November 4, 2014 6:13:49 PM GMT+08:00, "dyjbean at gmail.com" <dyjbean at gmail.com> wrote:
>hi,
>i want to read a variable "Time" which is involved in group  in a hdf
>file, a part of information of this hdf file is as follows:
>+++++++++++++++++++++++++++++++++++++++++++
>......
>GROUP=GeoField 
>OBJECT=GeoField_1 
>GeoFieldName="Time" 
>DataType=DFNT_FLOAT64 
>DimList=("DataTrack_lo") 
>END_OBJECT=GeoField_1 
>OBJECT=GeoField_2 
>GeoFieldName="Latitude" 
>DataType=DFNT_FLOAT32 
>DimList=("DataTrack_lo","DataXTrack_lo") 
>END_OBJECT=GeoField_2 
>OBJECT=GeoField_3 
>GeoFieldName="Longitude" 
>DataType=DFNT_FLOAT32 
>DimList=("DataTrack_lo","DataXTrack_lo") 
>END_OBJECT=GeoField_3 
>END_GROUP=GeoField 
>......
>++++++++++++++++++++++++++++++++++++++++++++++++++
>
>i want to extract the "Time" in ncl, but it showed:
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>ncl 0> ff=addfile("AMSR_E_L2A_201108010017_D.hdf","r") 
>ncl 1> time=ff->Time 
>fatal:["Execute.c":6321]:variable (Time) is not in file (ff) 
>fatal:["Execute.c":8565]:Execute: Error occurred at or near line 1
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>it seems that there doesn't exist "Time" variable in this hdf file,but
>it does,
>
>how can i read this time info in ncl?
>
>
>thanks 
>
> 
>
>
>dyjbean at gmail.com
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ncl-talk mailing list
>List instructions, subscriber options, unsubscribe:
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk
 
 
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141104/3bdcde0f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 46225 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141104/3bdcde0f/attachment.jpe 


More information about the ncl-talk mailing list