[gradsusr] opening modis hdf files

See Hai Ooi axl419 at yahoo.com
Mon Nov 19 23:53:28 EST 2012


Thank you Jennifer.
 
I am sorry I did not express my problem clearly.  Say, I have the following two files:-
 
MYD08_D3.A2003121.005.2007081003101.hdf
MYD08_D3.A2003122.005.2007081005859.hdf
 
As you are aware, the second group of the MODIS data file (.....005.2007081003101.hdf) refers to the processing date and time and this differs from file to file.  The following .ctl file gives rise to error [By the way, I am using window version of GrADS Version 2.0.1.oga.1] :-
 
dset ^./MYD08_D3.A2003%t3.005.*.hdf
options yrev template
xdef XDim:mod08 360 linear -180.0 1.0
ydef YDim:mod08 180 linear -90.0 1.0
tdef TIME2DIMS:mod08 2 linear 1may2003 1dy
vars 3
Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>od_550 0 t,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 t,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 t,y,x Optical depth at 0.55 microns for land (corrected): Minimum
endvars

Error:-
---------
ga-> xdfopen c:/homeuse/asip2/test2/mod08.ctl
Scanning Descriptor File:  c:/homeuse/asip2/test2/mod08.ctl
read_metadata: gaopfn failed (rc=-88888)
gadsdf: Couldn't ingest SDF metadata.
SDF Descriptor file c:/homeuse/asip2/test2/mod08.ctl was not successfully opened
 & parsed.
 
In addition, I am not sure whether my tdef is correct or not.  I use %t3 to stand for the consecutive time steps such as 121, 122, 123 etc.  Hope you can assist me in obtaining the right template to open 31 files (particularly to replace the different processing data and time groups in a specific way) , say, in January 2003.  
 
Best regards.
 
Ooi
 
 
 


--- On Mon, 19/11/12, Jennifer Adams <jma at cola.iges.org> wrote:


From: Jennifer Adams <jma at cola.iges.org>
Subject: Re: [gradsusr] opening modis hdf files
To: "GrADS Users Forum" <gradsusr at gradsusr.org>
Date: Monday, 19 November, 2012, 9:42 PM



The template option %ch along with CHSUB entries allows you to map any file name to a single time or a range of time steps. --Jennifer



 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121119/677a6c35/attachment-0003.html 


More information about the gradsusr mailing list