[gradsusr] (no subject)

Kishore Ragi kishoreragi at gmail.com
Mon Mar 28 08:15:46 EDT 2016


Hi,

I understand that it is a grads forum, but I want to help you to make your
life easy.

I am so lazy, so I look for easy and quick ways. I don't care it is GrADS
or other software, but I do care if the software is helping me achieve what
I exactly want.

If I were you, I would use CDO for this, maybe because I am not much
proficient at GrADS programming.

cdo monsum input.nc output.nc

Hope this helps.

Regards,
Kishore


*PhD student in climate science,*

*National Institute of Technology, Rourkela,*

*India- 769008*






*Phone: +91-8908671881http://www.researchgate.net/profile/Kishore_Ragi
<http://www.researchgate.net/profile/Kishore_Ragi>https://in.linkedin.com/in/kishoreragi
<https://in.linkedin.com/in/kishoreragi>http://kishoreragi.webnode.com/
<http://kishoreragi.webnode.com/>*

On Mon, Mar 28, 2016 at 10:51 PM, Gargi Akhoury <gargiakhoury at bitmesra.ac.in
> wrote:

> Dear Grads User's,
>
>             I have tried a program to display the monthly sum of
> precipitation. But I am getting only the January value. Kindly, help me
> regarding this.
>
> Tha program is as follows:
>
> 'reinit'
>  mday = '31 28 31 30 31 30 31 31 30 31 30 31'
>  month = 'jan feb mar apr may jun jul aug sep oct nov dec'
>
> 'open rfc.ctl'
> *'set t 1 365'
>  yr = 1951
>
> imon=1
>   while(imon <= 12)
>    md = subwrd(mday,imon)
>    mc = subwrd(month,imon)
>   time1 = '01'mc''yr
>    time2 = md''mc''yr
> 'define month=sum(rf,t='time1',t='time2')'
>   imon = imon + 1
>   endwhile
> 'd month'
>
> val=subwrd(result,4)
> hj=write(rf_month.csv,val)
>
>
> Thanks & Regards
>
> _______________________________________________
> 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/20160328/6bf8472c/attachment.html 


More information about the gradsusr mailing list