Greetings All,
Firstly - thanks for previous answers on exporting to asciigrid!

Now i have a matrix (grid) of temperature,
and a lookup table of temperature and svp.

I would like to create a new matrix with corresponding svp values.

This is relatively straightforward in a GIS - but i have not found a way in R.
Ideally it would also interpolate between values in the lookup table.
Options like merge, cbind, may work??
Without looping would be ideal.

any ideas?
thanks!
Ian

# test matrix
mat = matrix(-49.5:50,10,10)

# test lookup table
temp = -10:9
svp = 1:20
tab = data.frame(temp,svp)


___________________________________________

Ian McCallum
Forestry Program
International Institute for Applied Systems Analysis
Schlossplatz 1, A-2361 Laxenburg, Austria
Phone: +43 2236 807-328
Fax: +43 2236 807-599 or 71313
E-mail: mccal...@iiasa.ac.at
Web: http://www.iiasa.ac.at/Research/FOR/
___________________________________________

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to