[gradsusr] Station data error

Lee Byerle lbyerle at yahoo.com
Mon Apr 22 21:26:30 EDT 2013


Hi, Mehwish,
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.:

TDEF 61 LINEAR 00Z01June2010 6hr

Second, you can keep the time for the gridded file the same for each display, for example:

'd oacres(rain.5(t=1), rain.1)'
'd oacres(rain.5(t=1),rain.2)'
'd oacres(rain.5(t=1),rain.3)'
etc.

Best Wishes,
Lee

On Apr 21, 2013, at 4:07 AM, mehwish ramzan wrote:

> Dear Lee,
> 
> 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. 
> 
> 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.
> 
> Thanks once again
> 
> With Best Regards,
> 
> Mehwish
> 
> 
> On Sun, Apr 21, 2013 at 3:57 AM, Lee Byerle <lbyerle at yahoo.com> wrote:
> Mehwish,
> 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.
> 
> 
> ga> d oacres(rain.5(t=1), rainstn)
> 
> best regards,
> Lee
> 
> 
> From: mehwish ramzan <mehwish.ramzan at gmail.com>
> To: gradsusr at gradsusr.org 
> Sent: Saturday, April 20, 2013 1:11 AM
> Subject: [gradsusr] Station data error
> 
> Dear GrADS user,
> 
> I want some help regarding the problem which i am facing right now. 
> 
> 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 
> 
> "Define not yet valid for station data",
> "Default file is a station data file".
> 
>  The error message is attached as well. Kindly help me.
> 
> Thanks
> 
> With Best Regards,
> 
> Mehwish
> 
>  
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> <old script.docx><new script.docx>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130422/c2b5b67e/attachment-0003.html 


More information about the gradsusr mailing list