Skip to content
Prev 106124 / 398506 Next

loop is going to take 26 hours - needs to be quicker!

Dear R-help,

I forgot to mention that I need the array in that format because I am going to 
do the same thing for another dataset of precipitation (ncep.data2) so they are 
both arrays of dimensions [144,72,46] so that I can correlate them globally and 
plot a visual image of the global correlations between the 2 datasets.... One of 
the datasets has a land mask applied to it already so it should be clear to see 
the land and pick ot the locations (i.e.over Europe) where there is strongest 
and weakest correlation.....that is the ultimate goal.

Following Rainer's response I should also point out that the columns in 
gpcc.data2 (with dimensions dim(gpcc.data2) = [476928,5]) are:

[,1]="Year", [,2]="month" (which is just january so always 1), [,3]="latitude", 
[,4]="longitude" and [,5]="data". All I want in the gpcc.array is the data not 
the longitudes and latitude values...hope that helps clear it up a bit!

I look forward to hearing any more ideas, thanks again for your time in reading 
this,

Jenny Barnes
going
of
where
each
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jennifer Barnes
PhD student - long range drought prediction
Climate Extremes
Department of Space and Climate Physics
University College London
Holmbury St Mary, Dorking
Surrey
RH5 6NT
01483 204149
07916 139187
Web: http://climate.mssl.ucl.ac.uk