Displaying 1 result from an estimated 1 matches for "syntemp".
Did you mean:
stemp
2012 Mar 27
0
sampling matrix 1 conditional on values in matrix 2
...ther measured at a different resolution. Temperature and bathymetry matrices are geo-referenced, but bathymetry is on a finer spatial resolution than the temperature data.
Below are some synthetic data in the form that I have access to. I would like to sample temperatures from locations (from 'syntemp') that have a certain bottom depth (from 'bath'), e.g. between -200 and -100m.
#bathymetry matrix with 0.1 x 0.1 degree resolution
x<-seq(-250,250,by=1)
x1<-sample(x,441)
bath<-matrix(x1,nrow=21)
bathlong<-seq(149,151,by=.1)
bathlat<-seq(-37,-35,by=.1)
colnames(bath)<...