[gradsusr] opening modis hdf files

Sergey Varlamov vsm at jamstec.go.jp
Mon Nov 19 02:48:05 EST 2012


Dear Sagar,

Correction: it has to be
vars 1
below as you try to use just single variable.

Sergey

Sergey Varlamov wrote:
> Dear Sagar,
>
> Please try with modified variable description line as:
>
> vars 3
> Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>deep_blue_aeros 0 y,x optional description
> endvars
>
>
>
> Sergey
>
> Sagar P Parajuli wrote:
>   
>> Hi Sergey,
>> thank you very much for your help. I tried to include the vars definitions
>> for only one variable but I still get the following error:
>> 'SDF file does not have any non-coordinate variables'.
>>
>> my complete script is:
>> dset ^./MYD08_D3.A2003121.005.2007081003101.hdf
>> xdef XDim:mod08 360 linear -180.0 1.0
>> ydef YDim:mod08 180 linear -90.0 1.0
>> vars 1
>> var 1 Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>deep_blue_aeros 0 y,x
>> endvars
>>
>>
>> What could be the issue ? Will you please advise what other definitions
>> should be included in var 1 line?
>>
>>
>>
>> Sagar
>>
>> On Mon, Nov 19, 2012 at 12:07 AM, Sergey Varlamov <vsm at jamstec.go.jp> wrote:
>>
>>   
>>     
>>> Dear Sagar P Parajuli,
>>>
>>> It is normal grads behavior: GrADS cuts names of variables to 15 symbols.
>>> To overcome it, you have to add also the variables description section to
>>> your description file and assign short "GrADS names" that you like
>>> to original long names in the HDF file, like:
>>>
>>> dset ^./MYD08_D3.A2003121.005.2007081003101.hdf
>>> xdef XDim:mod08 360 linear -180.0 1.0
>>> ydef YDim:mod08 180 linear -90.0 1.0
>>> vars 3
>>> Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>od_550 0 y,x Optical
>>> depth at 0.55 microns for land (corrected): Mean
>>> Deep_Blue_Aerosol_Optical_Depth_550_Land_Standard_Deviation=>od_550_sd 0
>>> y,x Optical depth at 0.55 microns for land (corrected): Standard Deviation
>>> Deep_Blue_Aerosol_Optical_Depth_550_Land_Minimum=>od_550_min 0 y,x
>>> Optical depth at 0.55 microns for land (corrected): Minimum
>>> endvars
>>>
>>> Inside must be just "vars" lines, 3 in the example above.
>>> If you have other - please add description lines and modify
>>> vars number.
>>> See the Grads documentation for details and modify example above,
>>> especially if you receive again some strange images.
>>> Description of variables has to consistent with the hdf structure:
>>> number of vertical levels if any (0 above),  grid layout etc.
>>>
>>> Hope it could help you.
>>>
>>> Sergey Varlamov
>>>
>>>
>>> Sagar P Parajuli wrote:
>>>     
>>>       
>>>> Hi,
>>>> I was able to open modis hdf file (MYD08_D3) using xdfopen with following
>>>> script:
>>>> dset ^./MYD08_D3.A2003121.005.2007081003101.hdf
>>>> xdef XDim:mod08 360 linear -180.0 1.0
>>>> ydef YDim:mod08 180 linear -90.0 1.0
>>>> However, when I see the variables using ctlinfo, it shows more than one
>>>> variables with the same variable name. For example, in the below lines,
>>>>       
>>>>         
>>> all
>>>     
>>>       
>>>> three variables have same variable name deep_blue_aeros.
>>>>
>>>> Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>deep_blue_aeros  0  y,x
>>>> Deep blue aerosol optical depth at 0.55 microns for land (corrected):
>>>>       
>>>>         
>>> Mean
>>>     
>>> Deep_Blue_Aerosol_Optical_Depth_550_Land_Standard_Deviation=>deep_blue_aeros
>>>     
>>>       
>>>> 0  y,x  Deep blue aerosol optical depth at 0.55 microns for land
>>>> (corrected): Standard Deviation
>>>> Deep_Blue_Aerosol_Optical_Depth_550_Land_Minimum=>deep_blue_aeros  0  y,x
>>>> Deep blue aerosol optical depth at 0.55 microns for land (corrected):
>>>> Minimum
>>>>
>>>> When I display the variable using d deep_blue_aeros, it doesn't show
>>>> realistic image. I don't know which variable out of three is being
>>>> displayed. Could anyone help on this?
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>       
>>>>         
>>> --
>>>
>>> Sergey Varlamov
>>>
>>> Research Institute for Global Change
>>> JAMSTEC, JAPAN
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>     
>>>       
>>
>>   
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>   
>>     
>
>
>   


-- 

Sergey Varlamov

Senior Scientist
Ocean Downscaled Prediction Research Team
Climate Variation Predictability and Applicability Research Program
Research Institute for Global Change
JAMSTEC, 3173-25 Showa-machi, Kanazawa-ku,
Yokohama, Kanagawa-ken, 236-0001 JAPAN
Tel: +81-45-778-5516  Fax: +81-45-778-5707
E-mail: vsm at jamstec.go.jp

〒236-0001 横浜市金沢区昭和町3173-25
独立行政法人海洋研究開発機構 地球環境変動領域
短期気候変動応用予測研究プログラム
ダウンスケール沿海変動予測研究チーム
Varlamov Sergey





More information about the gradsusr mailing list