if you use %d2, it may work with "set t 1", "set t 2".<div>t=365 or 730 may not work because this data file has no data with 365 or 730 time steps.</div><div>Hope, this helps.<br><br><br><br><br>From: Natansh Naidu <natanshnaidu@yahoo.in><br>Sent: Fri, 08 Jan 2016 22:10:08 <br>To: SBR <satya_atmos@rediffmail.com>, GrADS Users Forum <gradsusr@gradsusr.org><br>Subject: Trouble in opening multiple .grd files with template ctl<br> <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"><a href='http://www.iges.org/grads/gadoc/templates.html'>http://www.iges.org/grads/gadoc/templates.html</a></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">
<a href='http://gradsusr.org/mailman/listinfo/gradsusr'>http://gradsusr.org/mailman/listinfo/gradsusr</a><br clear="none">
<br clear="none"><a 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></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 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'><b>Know More ></b></a></td></tr></tbody></table></div></div><br><br></div> </div> </div> </div></div>
</div><br><A HREF="https://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="https://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A><table cellpadding="0" cellspacing="0"><tbody><tr><td><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><a 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" target="_blank"><b>Know More ></b></a><!-- <in-put type="button" cl-ass="button" on-click="parent.location='http://track.rediff.com/click?url=___http://businessemail.rediff.com/company-email-hosting-services?sc_cid=signature-23-9-13___&cmp=signature-23-9-13&lnk=mypagelogout&nsrv1=host'" value="Know more >"> </input> --></td></tr></tbody></table>