Hello friends,<br><br>I have a problem in redefining the time step of a data variable. For that I tried the following script ( it have some script variables which can be find from attached file.)<br><br>'set t 1 '1+yrn-yr1<br>
'define i'<br>yr=1<br>while (yr<(1+yrn-yr1))<br>'set t 'yr<br>'i = ssn(time = 'd1''mmm1''(yr1+yr-1)')<br>yr=yr+1<br>endwhile<br><br>This modification in my script give the following error message.<br>
<br>Syntax Error<br> Error occurred on line 134<br> In file SMTSIndex2.gs<br><br>I expect that the error is from <br><br><b>'i = ssn(time = 'd1''mmm1''(yr1+yr-1)')</b><br><br>Can anybody tell a way to solve my problem in correct syntax. My real need is to get a variable with annual time step while I am having a variable (ssn) with daily time step which repeats the same value for all days of same year.<br>
<br>Thanking you in advance.<br><br><br><div class="gmail_quote">On 5 June 2010 10:52, gibies george <span dir="ltr"><<a href="mailto:gibiesgeorge@gmail.com">gibiesgeorge@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><br>From a daily data I have calculated seasonal mean using ave function. <br><div style="margin-left: 80px;">'define ssn=ave(ts,time='d1''mmm1',time='dn''mmmn')'<br>
</div><br>Now how can I redefine the time step of 'ssn' variable to yearly. Presently it is having daily timestep. <br><br><u><b><br><br>Interactive grads script for Seasonal Mean Time series Index.</b></u><br><br>
I am attaching an interactive GrADS script, which I have developed just now. This script gives you a seasonal mean climatology (spatial plot) of any parameter you specified at run time. Then you can create a box with the mouse in you pc. After that you will get a box averaged seasonal mean time series Index of the specified parameter.<br clear="all">
<br>A smple output (index.pdf) also is attached.<br><br>
</div><br><br clear="all"><br>-- <br>Gibies George,CSIR-RF,<br>Climate and Global Modelling Division,<br>Indian Institute of Tropical Meteorology,<br>Dr. Homi Bhabha Road,<br>NCL (P. O.), Pashan,<br>Pune 411008, India.<br>
<br><a href="http://sites.google.com/site/gibiesge/" target="_blank">http://sites.google.com/site/gibiesge/</a><br><br>Think about the environment. Please don't print this e-mail unless it is necessary. <br>
</blockquote></div><br><br clear="all"><br>-- <br>Gibies George,CSIR-RF,<br>Climate and Global Modelling Division,<br>Indian Institute of Tropical Meteorology,<br>Dr. Homi Bhabha Road,<br>NCL (P. O.), Pashan,<br>Pune 411008, India.<br>
<br><a href="http://sites.google.com/site/gibiesge/">http://sites.google.com/site/gibiesge/</a><br><br>Think about the environment. Please don't print this e-mail unless it is necessary. <br>