[gradsusr] How to combine ctl files in grads?
James T. Potemra
jimp at hawaii.edu
Wed Oct 21 15:32:36 EDT 2015
Giacomo,
I'm now confused as to what you are trying to do. You originally wanted
to combine two GrADS data descriptor files, so I presumed you wanted to
use the template option whereby you have one control file for many
binary files. It now appears that you want to do some sort of time
integration (or summing?). It might help if you give more information
on your descriptor files (ctl files) and binary files, for example how
is time defined in the ctl file and how do you define the data file
(DSET)? The message below suggests you might be trying to access a time
that is not defined.
Jim
On 10/21/15 9:10 AM, giacomo tricarico wrote:
> Thanks Jennifer :)
>
> I've put this:
> 'clear'
> 'set gxout fwrite'
> 'set fwrite -ap 'provafile
> t=3
> while (t<=tlast)
> 'set t 't
> 'd APCPsfc+APCPsfc(t-1)'
> t=t+2
> endwhile
> 'disable fwrite'
>
> but I get:
> Data Request Warning: Request is completely outside file limits
> Data Request Warning: Request is completely outside file limits
> Data Request Warning: Request is completely outside file limits
> Data Request Warning: Request is completely outside file limits
> Data Request Warning: Request is completely outside file limits
> Data Request Warning: Request is completely outside file limits
> Data Request Warning: Request is completely outside file limits
> Data 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 file
> t=3
> while (t<=tlast)
> ‘set t ‘t
> 'd p+p(t-1)’
> t=t+2
> endwhile
> ‘disable fwrite’
>
> —Jennifer
>
>
>
>
> On Oct 20, 2015, at 3:46 PM, giacomo tricarico <mino-98 at hotmail.it
> <mailto: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 <mailto: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
>
>
> _______________________________________________
> 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/4575ab8b/attachment-0001.html
More information about the gradsusr
mailing list