[gradsusr] doubt in cat command in grads

James T. Potemra jimp at hawaii.edu
Sat Nov 26 18:35:11 EST 2011


Dipak:

It seems that each of your individual files have several time-steps.  If 
this is the case you won't be able to correctly concatenate them 
together.  GrADS will want all variables at t=1, then all variables at 
t=2, etc., but what you are doing is variable one at all time, then 
variable two at all times, and so.

Jim

On 11/26/2011 1:37 AM, dipak sahu wrote:
> Dear grads user
>        I have some doubt in cat command in grads. I have two sets of 
> ctl and dat  files in grads one is RAINC.ctl, RAINC.dat and another 
> one is RAINNC.ctl, RAINNC.dat. And I tried to make these two .ctl file 
> to one .ctl file. so I tried the following command to creat one .dat file
> $ cat RAINC.dat RAINNC.dat > RAIN.dat
> and also make one .ctl file RAIN.ctl containing both the parameters 
> RAINC (1st variable)and RAINNC (2nd variable)
>
> for verification I tried two cases in grads
> *case-1*
> open RAIN.ctl
> set t 9
> d rainc+rainnc (it gives value 0 90)
>
> *case-2*
> open RAINC.ctl
> open RAINNC.ctl
> set t 9
> d rainc.1+rainnc.2 (it gives value 0 35)
>
> So, is there anything wrong with the cat command in grads. If so what 
> is the alternate procedure to combine two .ctl and .dat files to make 
> one file?
>
> welcome for your suggestion
> dipak
>
> -- 
> ********************************************
> Dipak kumar Sahu,
> Research Scholar,
> Centre for Atmospheric Sciences.,
> Indian Institute of Technology,Delhi
> email:- dipak_math at yahoo.com <mailto:dipak_math at yahoo.com>
> **********************************************
>
>
> _______________________________________________
> 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/20111126/e5313b6f/attachment-0003.html 


More information about the gradsusr mailing list