<div dir="ltr">so put it like this<br>' set sdfwrite -dbl ' 20110111 '.nc '<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">By<br> Krishnakumar.AP<br> </div></div>
<br><div class="gmail_quote">On Sun, Jan 3, 2016 at 12:54 AM, Natansh Naidu <span dir="ltr"><<a href="mailto:natanshnaidu@yahoo.in" target="_blank">natanshnaidu@yahoo.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div>Hello everyone,</div><div dir="ltr"><br></div><div dir="ltr">I am Natansh Naidu from India and am very new to GrADS. I am having one month's daily average data in .grd files. I have written a script file for converting a single .grd file to netcdf classic, which is as follows:</div><div dir="ltr"><br></div><div dir="ltr">' open 4.ctl '</div><div dir="ltr">' set lat 4 26 '</div><div dir="ltr">' set lon 60 100 '</div><div dir="ltr">' set t 1 1 '</div><div dir="ltr">' define Dst = sst '</div><div dir="ltr">' define n = 20110111 '</div><div dir="ltr">' set sdfwrite -dbl ' n '.nc '</div><div dir="ltr">' sdfwrite Dst '</div><div dir="ltr">' clear sdfwrite '</div><div dir="ltr"><br></div><div dir="ltr">I want my output file to be named as <a href="http://20110111.nc" target="_blank">20110111.nc</a> but instead of that it is generating <a href="http://n.nc" target="_blank">n.nc</a>. I know I can directly define it as <a href="http://20110111.nc" target="_blank">20110111.nc</a> but is there any way of defining the filename via variable? Also please guide me how can I automatically change the DSET of my ctl file since I have 30 .grd files labelled similar to 20110111.grd and I dont want to create a seperate ctl file for every .grd file.</div><div dir="ltr"><br></div><div dir="ltr">Thanks in advance for your help.</div><div dir="ltr">Regards,</div><div dir="ltr">Natansh Naidu</div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>