<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Thank you Jennifer.</DIV>
<DIV> </DIV>
<DIV>I am sorry I did not express my problem clearly. Say, I have the following two files:-</DIV>
<DIV> </DIV>
<DIV>MYD08_D3.A2003121.005.2007081003101.hdf</DIV>
<DIV>MYD08_D3.A2003122.005.2007081005859.hdf</DIV>
<DIV> </DIV>
<DIV>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] :-</DIV>
<DIV> </DIV>
<DIV>dset ^./MYD08_D3.A2003%t3.005.*.hdf<BR>options yrev template<BR>xdef XDim:mod08 360 linear -180.0 1.0<BR>ydef YDim:mod08 180 linear -90.0 1.0<BR>tdef TIME2DIMS:mod08 2 linear 1may2003 1dy<BR>vars 3<BR>Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean=>od_550 0 t,y,x Optical depth at 0.55 microns for land (corrected): Mean<BR>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<BR>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<BR>endvars<BR></DIV>
<DIV>Error:-</DIV>
<DIV>---------</DIV>
<DIV>ga-> xdfopen c:/homeuse/asip2/test2/mod08.ctl<BR>Scanning Descriptor File: c:/homeuse/asip2/test2/mod08.ctl<BR>read_metadata: gaopfn failed (rc=-88888)<BR>gadsdf: Couldn't ingest SDF metadata.<BR>SDF Descriptor file c:/homeuse/asip2/test2/mod08.ctl was not successfully opened<BR> & parsed.</DIV>
<DIV> </DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>Best regards.</DIV>
<DIV> </DIV>
<DIV>Ooi</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><BR>--- On <B>Mon, 19/11/12, Jennifer Adams <I><jma@cola.iges.org></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Jennifer Adams <jma@cola.iges.org><BR>Subject: Re: [gradsusr] opening modis hdf files<BR>To: "GrADS Users Forum" <gradsusr@gradsusr.org><BR>Date: Monday, 19 November, 2012, 9:42 PM<BR><BR>
<DIV id=yiv1191256194>
<DIV>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
<DIV>
<DIV>
<DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></td></tr></table>