[gradsusr] opening modis hdf files

Sagar P Parajuli psagar at utexas.edu
Mon Nov 19 01:51:13 EST 2012


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
>



-- 

**
Best regards,

* *

*Sagar P. Parajuli*

**Graduate Research Assistant

The University of Texas at Austin
Jackson School of Geosciences
e-mail: psagar at utexas.edu
Contact: +1 512 965 4093
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121119/1011bc50/attachment-0003.html 


More information about the gradsusr mailing list