[ncl-talk] how to read a variable in group of hdf file?
dyjbean at gmail.com
dyjbean at gmail.com
Tue Nov 4 10:13:37 MST 2014
after i have changed the suffix of AMSR_E_L2A_201108010017_D.hdf into AMSR_E_L2A_201108010017_D.hdf.hdfeos, there gave a
another variation, the "Time" variable has new variable names:
double Time_High_Res_B_Swath ( DataTrack_lo_High_Res_B_Swath )
double Time_High_Res_A_Swath ( DataTrack_lo_High_Res_A_Swath )
double Time_Low_Res_Swath ( DataTrack_lo_Low_Res_Swath )
above these three variables didn't appear in hdf file but in hdfeos,this is a file format change.
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/20141105/1c478105/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/20141105/1c478105/attachment.jpe
More information about the ncl-talk
mailing list