[gradsusr] How to combine ctl files in grads?

giacomo tricarico mino-98 at hotmail.it
Wed Oct 21 15:10:59 EDT 2015


Thanks Jennifer :)

I've put this:
'clear''set gxout fwrite''set fwrite -ap 'provafilet=3while (t<=tlast)'set t 't'd APCPsfc+APCPsfc(t-1)'t=t+2endwhile'disable fwrite'
but I get:
Data Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limitsData Request Warning:  Request is completely outside file limits....
From: jma at cola.iges.org
Date: Wed, 21 Oct 2015 11:14:38 -0400
To: gradsusr at gradsusr.org
Subject: Re: [gradsusr] How to combine ctl files in grads?

It sounds like what you want to do is change a 3-hourly time series to a 6-hourly time series. And that you have to do with brute-force coding by writing out a new file, one time step at a time, that adds two 3hr accumulations to get the 6hr accumulation. Something generally like this:
’set gxout fwrite’‘set fwrite -ap 'outfilename* don’t forget to remove the outfile before you begin, otherwise you’ll append to an existing filet=3while (t<=tlast)  ‘set t ‘t  'd p+p(t-1)’  t=t+2endwhile‘disable fwrite’
—Jennifer



On Oct 20, 2015, at 3:46 PM, giacomo tricarico <mino-98 at hotmail.it> wrote:


Hi, since in my GRADS's files (produced by WRF-NMM Unipost) rain is in 3h steps, I would like to combine for example 2 ctl files, so that in one I have 6h rain:how could I do this?

Thanks,Giacomo 		 	   		  
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr


--Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030 





_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151021/dfb618cd/attachment.html 


More information about the gradsusr mailing list