Displaying 2 results from an estimated 2 matches for "20x25".
Did you mean:
0x25
2010 Sep 15
2
how to superimpose 2 matrices of different sizes
...$xloc, pop$yloc))
14 15 16 17 18 19 20 21 22
5 0 0 0 0 0 0 0 0 0
7 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 0 0
9 0 0 0 0 0 0 9 0 5
10 0 0 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0 0 0
2. The second created to match my spatial grid (20x25):
> Uempty=matrix(data = 0, nrow = 20, ncol = 25)
I want to place each element of U (e.g. U[22,9]=5) in the corresponding
cell of Uempty and end up with this final matrix like this:
1 2 3 ... 22 23 24 25
5 0 0 0 ... 0 0 0 0
: : : : ... : : : :
7 0 0...
2008 Mar 17
1
how to plot a map on a non-rectilinear grid
...at my grid is not rectilinear, it is
bended. Here is an example
lon<-matrix(0,20,25)
lat<-matrix(0,20,25)
elev<-matrix(0,20,25)
for (i in 1:20) {
for (j in 1:25) {
lat[i,j]<-i+((j-12.5)^2)/100
lon[i,j]<-j+((i-10)^2)/100
elev[i,j]<-i+j
}
}
All 3 matrices have dimensions 20x25. How can I plot elev values in the
grid points defined by lat and lon?
--
Kostas Douvis
PhD Student
University of Athens - Department of Geography and Climatology
Academy of Athens - Research Centre for Atmospheric Physics and Climatology
email: cdouvis at geol.uoa.gr
tel: +30-210-8832048