Peter,
If the data is on a monthly grid multiply by the tbox pseudo variable
associated with the data (if the units are days).
let precip_mm_month = precip*tbox[gt=precip]
alternatively create a new variable
let YEAR =INT((L-1)/12)
let MON = MOD(L-1,12)+1
let DAYS_IN_MONTH = DAYS1900(YEAR[L=@shf:1],MON[l=@shf:1],1)-DAYS1900
(YEAR,MON,1)
let precip_mm_month = precip*days_in_month[gt=precip@asn]
On Thursday 21 May 2009 19:58, you wrote:
> Dear Users,
>
> i have monthly precipitation data set (360 time slices) in format of
> mm/day. It's on a gregorian calendar and i would like to have the data
> values in mm/month. I know, i should multiple the fields by 28/29/30/31. Is
> there a good solution to do that instead of a REPEAT command?
>
> Thanks, Peter