<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Mehwish,<div>I have a few suggestions. In each of your 5 control (ctl) files, make the tdef line the same in all cases, even though the times may be different in the binary data. This will avoid time dimension errors, e.g.:</div><div><br></div><div>TDEF 61 LINEAR 00Z01June2010 6hr</div><div><br></div><div>Second, you can keep the time for the gridded file the same for each display, for example:</div><div><br></div><div>'d oacres(rain.5(t=1), rain.1)'</div><div>'d oacres(rain.5(t=1),rain.2)'</div><div>'d oacres(rain.5(t=1),rain.3)'</div><div>etc.</div><div><br></div><div>Best Wishes,</div><div>Lee</div><div><br><div><div>On Apr 21, 2013, at 4:07 AM, mehwish ramzan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Dear Lee,<div><br></div><div style="">Thank you so much for your kind response. I tried your suggestions and it give an output as well. But as i am not that much good in GrADS so just want to share the old as well as new script with you so that you can see either i am following your suggestions rightly or not. </div>
<div style=""><br></div><div style="">Please see the attached files (Old script which was giving error) and (new script with an output). And kindly let me know about your worthy comments.</div><div style=""><br></div><div style="">Thanks once again</div>
<div style=""><br></div><div style="">With Best Regards,</div><div style=""><br></div><div style="">Mehwish</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 3:57 AM, Lee Byerle <span dir="ltr"><<a href="mailto:lbyerle@yahoo.com" target="_blank">lbyerle@yahoo.com</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="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Mehwish,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
You may have a problem w/the time dimension varying when it should not, for your gridded array rain.5, or your may need to define the variables at each time using oacres() and then sum.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
ga> d oacres(rain.5(t=1), rainstn)</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
best regards,</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">Lee</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br></div><div><br></div> <div style="font-family:'times new roman','new york',times,serif;font-size:12pt"> <div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<div dir="ltr"> <hr size="1"> <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> mehwish ramzan <<a href="mailto:mehwish.ramzan@gmail.com" target="_blank">mehwish.ramzan@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a> <br>
<b><span style="font-weight:bold">Sent:</span></b> Saturday, April 20, 2013 1:11 AM<br> <b><span style="font-weight:bold">Subject:</span></b> [gradsusr] Station data error<br> </font> </div> <div><div><div class="h5"><br>
<div><div dir="ltr">Dear GrADS user,<div><br></div><div>I want some help regarding the problem which i am facing right now. </div><div><br></div><div>I want to show the summer precipitation average. I prepared station data files for each month (June-Sep) using station observation data and then interpolate with CPC precipitation data using oacres function. It gives me nice view of station precipitation but when i tried to sum up all the summer months station data and interpolate with CPC precipitation data it gives Define error </div>
<div><br></div><div>"Define not yet valid for station data",</div><div>"Default file is a station data file".</div><div><br></div><div> The error message is attached as well. Kindly help me.</div>
<div><br></div><div>Thanks</div><div><br></div><div>With Best Regards,</div><div><br></div><div>Mehwish</div><div><br></div><div> </div></div>
</div><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><br></div> </div> </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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<span><old script.docx></span><span><new script.docx></span></blockquote></div><br></div></body></html>