Hi Ping, 

You can read your grid files to R. 

Recently I  read monthly grid data for time series and they can be stacked in R. 

Use package Raster for stacking purpose. Code I used is given below

setwd ("D:\\WORKINGS")
# check your data in folder
dir()
library (raster)
# list all files of interest:
weather<- list.files()
# Read to R:
require (raster)
stacked <- stack (lapply(weather,raster))

Look for help file of the raster package where you can get aggregates etc
This approach is very simple and it works for me. 

Thanks. 

Cheers,
Senani



Date: Sat, 10 Mar 2012 07:52:21 -0700
From: ping yang <pingyang.whu@gmail.com>
To: R-sig-Geo@r-project.org
Subject: [R-sig-Geo] Aggregate time series grid data temporally
Message-ID:
    <CAK8gSG_iuc_bZ6jVOy_YMAb_Rn9Qb4e_9jMK7kwr+VTn919_gg@mail.gmail.com>
Content-Type: text/plain

Hi,

I am a newbie of R, I have time series (6 hours) weather data(represented
as muti-layer grids), what I plan to do is to aggregate these grids
temporally(from 6 hours to daily), Can I do it with R? some instructions or
suggestions?

Thanks,

Ping
----------
Ping Yang, Ph.D.
Postdoctoral Research Associate
CUNY EnVironmental Crossroads Initiative
 
senani karunaratne
University of Sydney
Australia

	[[alternative HTML version deleted]]

