[gradsusr] (no subject)

Gargi Akhoury gargiakhoury at bitmesra.ac.in
Mon Mar 28 07:51:10 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160328/a0ac024d/attachment.html 


More information about the gradsusr mailing list