<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_1_1452270321648_2689">Thanks for help. Now my .ctl file for reading 2 .grd files for 1st and 2nd JAN 2011 looks as follows:-</div><div id="yui_3_16_0_1_1452270321648_2689" class="">DSET ^something_201101%d2_something_something_something.grd</div><div id="yui_3_16_0_1_1452270321648_2689" dir="ltr" class="">OPTIONS template</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">TDEF 730 LINEAR 00:00Z01JAN2011 1dy</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902"><br></div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">But opening this ctl file opens data only for 1st JAN and not for 2nd JAN. Time values are indicated by GrADS as follows:</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902"><br></div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">Time values set: 2011:1:1:0 2011:1:1:0<br></div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902"><br></div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">I have set tnum = 730 as for one day tnum=365 was set in original .ctl file for a single day. Somebody please help me. I have even tried the CHSUB and %id2 options as well.</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">P.S.: I am very new to GrADS</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902"><br></div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">Regards,</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902">Natansh Naidu</div><div dir="ltr" id="yui_3_16_0_1_1452270321648_2902"><br></div> <div class="qtdSeparateBR" id="yui_3_16_0_1_1452270321648_2669"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1452270321648_2866" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_1_1452270321648_2865"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_1_1452270321648_2864"> <div dir="ltr" id="yui_3_16_0_1_1452270321648_2874"> <font size="2" face="Arial" id="yui_3_16_0_1_1452270321648_2880"> <hr size="1" id="yui_3_16_0_1_1452270321648_2953"> <b><span style="font-weight:bold;">From:</span></b> SBR <satya_atmos@rediffmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Natansh Naidu <natanshnaidu@yahoo.in> <br><b><span style="font-weight: bold;">Cc:</span></b> GrADS Users Forum <gradsusr@gradsusr.org><br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 7 January 2016 7:10 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [gradsusr] multiple ctl files for multiple .grd files<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1452270321648_2863"><br><div id="yiv7686070189"><div id="yui_3_16_0_1_1452270321648_2862">Use "options template" to read all data files with a single CTL file.<div id="yui_3_16_0_1_1452270321648_2867"><br clear="none"></div><div id="yui_3_16_0_1_1452270321648_2861">http://www.iges.org/grads/gadoc/templates.html</div><div><br clear="none"></div><div>Hope, this helps.</div><div><br clear="none"></div><div>SBR</div><br clear="none">From: Natansh Naidu <natanshnaidu@yahoo.in><br clear="none">Sent: Wed, 06 Jan 2016 19:24:40 <br clear="none">To: GrADS Users Forum <gradsusr@gradsusr.org><br clear="none">Subject: [gradsusr] multiple ctl files for multiple .grd files<br clear="none"> <div class="yiv7686070189yqt0395992223" id="yiv7686070189yqt31685"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3368">Dear GrADS users,</div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253">I am Natansh Naidu from India and am very new to GrADS. I have one years's daily average satellite data in .grd (i.e. GRIB) format. alongwith the .grd files I got only one .ctl file, in which DSET name needs to be changed every time I need to open a different .grd file. Is there any way to write a script file in GrADS which can automatically write 365 .ctl files for me by automatically changing the DSET ?? I need a separate ctl file for each .grd file because I intend to convert them all into netcdf format.</div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253">P.S.: the .grd files are named as: "something_yyyymmdd_something.grd" </div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253"><br clear="none"></div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253">Please help me guys</div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253">Regards,</div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253">Natansh Naidu</div><div dir="ltr" id="yiv7686070189yui_3_16_0_1_1452086767253_3253"><br clear="none"></div></div></div>
_______________________________________________<br clear="none">
gradsusr mailing list<br clear="none">
gradsusr@gradsusr.org<br clear="none">
http://gradsusr.org/mailman/listinfo/gradsusr<br clear="none">
<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="https://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?"><img src="https://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle" data-id="a2278f96-e310-1860-f7b8-c7c4b25e8f59"></a><table cellpadding="0" cellspacing="0"><tbody><tr><td colspan="1" rowspan="1"><div style="font-family:Arial, Helvetica, sans-serif;font-size:14px;">Get your own <span style="padding-bottom:0px;background-color:#cc0000;padding-left:3px;padding-RIGHT:3px;font-family:Arial, Helvetica, sans-serif;color:#ffffff;font-size:12px;padding-top:0px;"><b>FREE</b></span> website, <span style="padding-bottom:0px;background-color:#c00;padding-left:3px;padding-RIGHT:3px;font-family:Arial, Helvetica, sans-serif;color:#ffffff;font-size:12px;padding-top:0px;"><b>FREE</b></span> domain & <span style="padding-bottom:0px;background-color:#c00;padding-left:3px;padding-RIGHT:3px;font-family:Arial, Helvetica, sans-serif;color:#ffffff;font-size:12px;padding-top:0px;"><b>FREE</b></span> mobile app with Company email. </div></td><td colspan="1" rowspan="1"><a rel="nofollow" shape="rect" target="_blank" href="http://track.rediff.com/click?url=___http://businessemail.rediff.com?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host" style="font-family:Arial, Helvetica, sans-serif;color:#fff;font-size:14px;color:#0000cc;"><b>Know More ></b></a></td></tr></tbody></table></div></div><br><br></div> </div> </div> </div></div></body></html>