[gradsusr] lats4d for sum

Lee Byerle lbyerle at yahoo.com
Wed Jan 16 15:47:38 EST 2013


Estefania,
One suggestion is to remove the options -time and -mean and add -func 'sum(@,time=00z01...,time=18z30...)' to the Lats command (with your month, year and day strings included as before).

Good luck,
Lee

On Jan 16, 2013, at 12:08 PM, Estefanía Jiménez <estefaniajimenez.r at gmail.com> wrote:

> Hi all! Is there a way that I can transform this script to get the sum of the variables instead of the average??  
> 
> 
>  /opt/grads30d/bin/gradsc -bpc "run /opt/grads30d/scripts/lats4d.gs -i /data/CR_presente_1960-1990/binctl/Eta_exp110km1960010100.ctl -o  ../climat_6190/media_$mes$ano -ftype ctl -format grads_grib -mean -vars pslm pslc tp2m dp2m u10m v10m prec prcv neve clsf cssf ghfl tsfc qsfc tgsc tgrz ussl uzrs smav rnof evpp lwnv mdnv hinv cbnt ocis olis oces oles roce role albe agpl zgeo uvel vvel temp umrl omeg umes -time 00z01$mese[$mes]$ano 18z30$mese[$mes]$ano -levs 1000 925 850 500 250 -table cptec.table"
> 
> 
> 
> 
> Thank you for your help!
> 
> -- 
> Estefanía Jiménez R.
> Meteoróloga
> Departamento de Climatología e Investigaciones Aplicadas
> Instituto Meteorológico Nacional
> MINAET
> Tel: +506 2222 5616 ext 131
> _______________________________________________
> 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/20130116/4e051b0e/attachment-0003.html 


More information about the gradsusr mailing list