Geocode one grid from 2 grids with latitude and longitude values
Show older comments
Hi.
I have 3 matrices exactly with the same dimensions. One represents the variable of interest; one matrix has the longitude values; and the other the latitude values.
How can I geocode my matrice using the data from the two other matrices ?
Thanks Marco
Answers (1)
Andrei Bobrov
on 18 Aug 2011
variant: use TriScatteredInterp
doc TriScatteredInterp
eg:
V = randi([-100 200],8,4) % your variable of interest
lon = randi([-30 -50],8,4) % your longitude values (deg)
lat = randi([20 40],8,4) % your latitude values (deg)
F = TriScatteredInterp(lon(:),lat(:),V(:)) % your interpolant
v = F(mean(lon),mean(lat)) % use function
Categories
Find more on Earth and Planetary Science in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!