Hi Jeff<br>I need to plot and print those extracted data. I know how to print it but I want to know how to specify the time interval required. The code I am using is:<br>open ERA.INTERIM.SFC.ctl<br>set lat 31.4<br>set lon 61.3<br>
set t 1 last (It will print values pertaining to all t but I want to specify an interval of 2).<br>set gxout print<br>set prnopts %g 1 1<br>d mag(no10usfc,no10vsfc)<br><br>How can I specify the required time interval for t?<br>
<br>thank you,<br><br>-Sagar<br><br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 10:03 AM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What do you want to do with the data? Do you want to make plots in Grads or just extract the data? If it's the latter, then you don't really even need to use Grads.<span class="HOEnZb"><font color="#888888"><br>
<br>Jeff</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 8:47 AM, Sagar P Parajuli <span dir="ltr"><<a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jeff,<br>I think I didn't clarify my question. I am writing control file for extracting some wind speed data corresponding to particular time of a day. What I could do in grads is:<br>
set t 1 last <br>But I want to do this skipping certain values eg. I want values corresponding to t = 1, 3, 5, 7, 9, etc (i.e. with certain interval). So, I need to skip some data and only extract those datas.<br>
How can I do this?<br><br><br>Thank you so much again.<br><br><br><br>Sagar<div><div><br><br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 11:13 PM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Time interval is specified in the control file used to open the data file. However, if you used xdfopen or sdfopen, there may be a different way to determine the time interval. In those cases, you should be able to find it by dumping the contents. If your data are in netCDF format, for example, you could use ncdump -h (data file) to find out.<div>
<br></div><div>Jeff Duda<br><br><div class="gmail_quote"><div><div>On Mon, Jan 14, 2013 at 9:47 PM, Sagar P Parajuli <span dir="ltr"><<a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Hi all,<br>I need to extract wind speed data at a particular time (12:00 pm only) everyday from the 6 hourly data of one year. So I need to set time as,<br>
t = 1, 1460, 2 (start, end, interval). How is the time interval specified in grads? <br>
<br>Thank you very much for your help. <br><br><br>
<p><b><span style="color:rgb(227,108,10)"></span></b></p><br><br><p><b><span style="color:rgb(227,108,10)">
</span></b></p>
<p><b><span style="color:rgb(227,108,10)">Sagar P. Parajuli</span></b></p><p><b><span style="color:rgb(227,108,10)"></span></b><span style="color:rgb(227,108,10)">Graduate
Research Assistant</span></p><p><span style="color:rgb(227,108,10)">The University of Texas at
Austin<br>
Jackson School of Geosciences<br>e-mail: <a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a></span></p><span style="color:rgb(227,108,10)">Contact: <a href="tel:%2B1%20512%20965%204093" value="+15129654093" target="_blank">+1 512 965 4093</a></span>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>
<p><b><span style="color:rgb(227,108,10)"></span></b></p></div></div>Best regards,<div><div><br><br><p><b><span style="color:rgb(227,108,10)">
</span></b></p>
<p><b><span style="color:rgb(227,108,10)">Sagar P. Parajuli</span></b></p><p><b><span style="color:rgb(227,108,10)"></span></b><span style="color:rgb(227,108,10)">Graduate
Research Assistant</span></p><p><span style="color:rgb(227,108,10)">The University of Texas at
Austin<br>
Jackson School of Geosciences<br>e-mail: <a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a></span></p><span style="color:rgb(227,108,10)">Contact: <a href="tel:%2B1%20512%20965%204093" value="+15129654093" target="_blank">+1 512 965 4093</a></span>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>
<p><b><span style="color:rgb(227,108,10)"></span></b></p>Best regards,<br><br><p><b><span style="color:rgb(227,108,10)">
</span></b></p>
<p><b><span style="color:rgb(227,108,10)">Sagar P. Parajuli</span></b></p><p><b><span style="color:rgb(227,108,10)"></span></b><span style="color:rgb(227,108,10)">Graduate
Research Assistant</span></p><p><span style="color:rgb(227,108,10)">The University of Texas at
Austin<br>
Jackson School of Geosciences<br>e-mail: <a href="mailto:psagar@utexas.edu" target="_blank">psagar@utexas.edu</a></span></p><span style="color:rgb(227,108,10)">Contact: +1 512 965 4093</span>