Hi there, I have been using the Tps function (within the Fields package) for a while now to interpolate different sedimentary units. Due to the method of formation of the units I know that at some edges the thickness of the unit decreases to zero. I was wondering if there was someway to specify that the interpolation only occurs within the convex hull of the data, outside of which the the values are zero. I am having problems with the output surface 'curling' up at distance from the data. Thanks, Sam -- View this message in context: http://r.789695.n4.nabble.com/Applying-interpolation-within-a-convex-hull-tp3454690p3454690.html Sent from the R help mailing list archive at Nabble.com.
Applying interpolation within a convex hull
3 messages · Rolf Turner, sam.e
On 17/04/11 10:01, sam.e wrote:
Hi there, I have been using the Tps function (within the Fields package) for a while now to interpolate different sedimentary units. Due to the method of formation of the units I know that at some edges the thickness of the unit decreases to zero. I was wondering if there was someway to specify that the interpolation only occurs within the convex hull of the data, outside of which the the values are zero. I am having problems with the output surface 'curling' up at distance from the data.
The interp() (and interpp()) functions in the "akima" package have
argument "extrap" which defaults to FALSE whence interpolation
is confined to the convex hull of the data. Sounds like what you
want.
cheers,
Rolf
2 days later
Thank Rolf, I am aware of the extrapolation possibilities within the interpolation packages within akima but this interpolation often leads to unrealistic results for my sedimentary units. Therefore I would like to be able to just apply the interpolation to the thickness measurements within the convex hull of the data with the interpolation taking into account that everywhere outside of the convex hull the thickness value is zero rather than increasing again. I would specifically like to apply this to the Tps function as using this function I can apply weights to my data which I can't in the akima fucntions. Thanks again, Sam -- View this message in context: http://r.789695.n4.nabble.com/Applying-interpolation-within-a-convex-hull-tp3454690p3459922.html Sent from the R help mailing list archive at Nabble.com.