hoja para interpolar datos
TRANSCRIPT
-
7/28/2019 Hoja Para Interpolar Datos
1/28
IP, IP_4
Finds the intersection points of two 2D lines or polylines
=IP(Line1, Line2, Optional Coordinate, Optional Point no)
"Line1" and "Line 2" are ranges listing the XY coordinates for the two lines
If the ranges for Line1 or Line2 have more than 2 columns, the data in that range is ass
"Coordinate" specifies the ordinate required, 1 = X, 2 = Y
"Point No" specifies which intersection point is requiredIf "Point No" is not provided IP returns an n x 2 array, where n is the number of intersect
If "Coordinate" is not provided IP returns a 1 x 2 array if "Point no" is provided, or an n x
If "Line2" is a single point IP returns intersection points for a line through this point and p
=IP_4(Line1X, Line1Y, Line2X, Line2Y, Optional Coordinate, Optional Point no)
For IP_4 the X and Y ranges for both lines are entered separately, allowing non-adjacen
If the ranges for Line1 or Line2 have more than 1 column, the data in that range is assu
Line1
x y
13 5
12.510565163 8.0901699437
11.090169944 10.877852523
8.8778525229 13.090169944
3 17
3 15
-0.090169944 14.510565163
-2.877852523 13.090169944
-5.090169944 10.877852523
-6.510565163 8.0901699437
-7 5
-6.510565163 1.9098300563
-5.090169944 -0.877852523
-2.877852523 -3.090169944
-0.090169944 -4.510565163
3 -5
6.0901699437 -4
8.8778525229 -3.090169944
11.090169944 -0.877852523
12.510565163 1.9098300563
13 5
Line2 (range name LineB)
13 6
-4 -5
-4 6
-7 16
5 16
IP in Segment No.Point No X Y Line1 Line2
1 #VALUE! #VALUE! #VALUE! #VALUE!
-10
Y-Axis
-
7/28/2019 Hoja Para Interpolar Datos
2/28
3 #VALUE! #VALUE! #VALUE! #VALUE!
4 #VALUE! #VALUE! #VALUE! #VALUE!
5 #VALUE! #VALUE! #VALUE! #VALUE!
6 #VALUE! #VALUE! #VALUE! #VALUE!
1 #VALUE! #VALUE!
2 #VALUE! #VALUE!
3 #VALUE! #VALUE!4 #VALUE! #VALUE!
5 #VALUE! #VALUE!
6 #VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
INSIDE
Finds if a specified point is inside a closed polyline
=INSIDE(Polyline, Point)
#VALUE! #VALUE!
IPLC
Finds the intersection points of a 2D line and a circle
=IPLC(Line, CircleXY ,Radius)
X Y
Line 4 3
100 6
Circle centr 3 8
Radius 8
m c
dx,dy 96 3 0.03125 2.875
Intersection Points
X Y
IP1 #VALUE! #VALUE!
IP2 #VALUE! #VALUE!
Check distance from circle centre and line parameters
Dist m c
IP1 #VALUE! #VALUE! #VALUE!
IP2 #VALUE! #VALUE! #VALUE!
IPCC
Finds the intersection points of two circles
=IPCC(Circle1XY, Radius1, Circle2XY, Radius2)X Y Radius
-
7/28/2019 Hoja Para Interpolar Datos
3/28
Intersection Points
X Y
IP1 #VALUE! #VALUE!
IP2 #VALUE! #VALUE!
Check distance from circle centre and line parameters
Circ1 Circ2IP1 #VALUE! #VALUE!
IP2 #VALUE! #VALUE!
IPSSS, IPSS
IPSSS finds the 3D intersection points of three spheres
IPSS finds the location and radius of the intersection circle of two spheres,
and the polar coordinate angles of the line connecting the two cenrtres
=IPSSS(Sphere1XYZR, Sphere2XYZR, Sphere3XYZR)
X Y Z R
Sphere1 1 2 3 5
Sphere2 5 3 -1 6
Sphere3 2 4 9 7
Intersection points
IP1 #VALUE! #VALUE! #VALUE!
IP2 #VALUE! #VALUE! #VALUE!
Check distance from IP's to circle centres
Sphere1 Sphere2 Sphere3
IP1 #VALUE! #VALUE! #VALUE!
IP2 #VALUE! #VALUE! #VALUE!
=IPSS(Sphere1XYZR, Sphere2XYZR)
Distance from centre sphere1 to centre intersection circle, radius intersection circle,
and angle of line connecting sphere centres in XY plane and perpendicular plane (radians)
Dist; Theta1 Radius; Theta2
Length #VALUE! #VALUE!
Angle #VALUE! #VALUE!
Check distance from circle to sphere centres
Sphere1 Sphere2
#VALUE! #VALUE!
Check angle of line connecting centres
Theta1 Theta2
#VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
4/28
ArcCenT2IP finds the centre and radius of an arc specified by 2 tangent points and
If the tangent points are not equidistant from the intersection point the further point is mov
If either of the tangent points are adjusted the revised 3D coordinates are returned in the s
together with the point number (1 or 2) of the adjusted point.
ArcCenP3 finds the centre and radius of an arc specified by any 3 points on the ar
Point 2 must lie between Points 1 and 3
For both functions points are specified as a single row range with 2 or 3 columns
If Point 1 is specified with 2 coordiantes the problem is treated as 2D, and any Z values spe
=ArcCenT2IP(TP1, TP2, IP)
Arc Centre and radius
X Y Z
TP 1 -1.414213562 1.4142135624 1
TP 2 1.4142135624 1.4142135624 3
IP 0 3 2
X Y Z R
#VALUE! #VALUE! #VALUE! #VALUE!
Adjusted pt #VALUE! #VALUE! #VALUE! #VALUE!
Check distance from tangent points to circle centre
R
Point 1 #VALUE!
Point 2 #VALUE!
Adjusted Pt #VALUE! #VALUE!
=ArcCenP3(Point1, Point2, Point3 )
Arc Centre and radius
X Y Z
Point 1 -1.414213562 1.4142135624 1
Point 2 0 2 2
Point 3 1.4142135624 1 3
X Y Z R
#VALUE! #VALUE! #VALUE! #VALUE!
Check distance from points to circle centre
R
Point 1 #VALUE!
Point 2 #VALUE!
Point 3 #VALUE!
Alternative solution posted on Eng-Tips Forum
=ArcCenP3_2(Point1, Point2, Point3 )Arc Centre and radius
X Y Z R
-
7/28/2019 Hoja Para Interpolar Datos
5/28
med to be arranged row-wise.
ion points.
2 array if not.
arallel to the X axis if XY = 1, or the Y axis if XY = 2
t ranges to be used.
ed to be arranged row-wise.
5 0 5 10 15
-10
-5
0
5
10
15
20
Column C
Column C
Column C
X-Axis
-
7/28/2019 Hoja Para Interpolar Datos
6/28
-
7/28/2019 Hoja Para Interpolar Datos
7/28
-
7/28/2019 Hoja Para Interpolar Datos
8/28
the intersection point of the tangents
ed along the tangent line.
cond row of the array output,
cified for the other two points are ignored.
Step by step, on spreadsheet solution: Point 2
1. Read the 3D coordinates for three points on the circle 0.0000 2.0000
1.4142 0.5858
3. Find polar coordinates of Point 3
4. Rotate Points 2 and 3 about the Z axis so that Point 3 is on the XZ plane #VALUE! #VALUE!
#VALUE! #VALUE!
6 Find angle of Point 2 from XY plane #VALUE!
#VALUE! #VALUE!
8. Find the XY coordinates of the mid-points of lines 1-2 and 3-2. #VALUE! #VALUE!
9 Find a second point on the perpendiculars through mid-points #VALUE! #VALUE!
#VALUE! #VALUE!
11. Find the radius of the circle #VALUE!
12a. Reverse rotation about X axis #VALUE! #VALUE!
12b. Reverse rotation about Y axis #VALUE! #VALUE!
12c. Reverse rotation about Z axis #VALUE! #VALUE!
X Y12d. Reverse translation #VALUE! #VALUE!
2. Translate Point 2 and Point 3 for an origin at Point 1
5. Rotate Points 2 and 3 about the Y axis so that Point 3 is on the X axis
7. Rotate Points 2 about the X axis so that Point 2 is on the XY plane
10. Find the XY coordinates of the intersection of the perpendiculars.
-
7/28/2019 Hoja Para Interpolar Datos
9/28
-
7/28/2019 Hoja Para Interpolar Datos
10/28
-
7/28/2019 Hoja Para Interpolar Datos
11/28
-
7/28/2019 Hoja Para Interpolar Datos
12/28
Point 3
2.0000 1.4142 1.0000 3.0000
1.0000 2.8284 -0.4142 2.0000
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE!
#VALUE!
#VALUE!
#VALUE!
Z R#VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
13/28
PDIST
Finds the perpendicular distance to the closest segment of a polyline
=PDist(Line,Points)
"Line" is a range listing the XY coordinates for the polyline
"Points" is a range listing the XY coordinates for one or more points
PDist returns an n x 3 array where n is the number of rows in the "points" range:Col1 = perpendicular distance from the point to the line.
Cols 2 and 3 = X and Y components of the perpendicular distance.
Enter as an array formula to return the whole array
Line
x y
13 5
12.510565 8.0901699
11.09017 10.8778538.8778525 12.9
3 13
3 14
-0.09017 14.510565
-2.877853 13.09017
-5.09017 10.877853
-6.510565 8.0901699
-7 5
-6.510565 1.9098301
-5.09017 -0.877853-2.877853 -3.09017
-0.09017 -4.510565
3 -3
6 0
8.8778525 -3.09017
11.09017 -0.877853
12.510565 1.9098301
13 5
Points
4.8 15
4.5 15
-8 10
5 2
9 4
Distance DX DY
#VALUE! #VALUE! #VALUE!
-10 -5 0
-10
-5
0
5
10
15
X-A
Y-Axis
-
7/28/2019 Hoja Para Interpolar Datos
14/28
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
15/28
Perpendicular Lines
1 4.8 15
#VALUE! #VALUE!
2 4.5 15
#VALUE! #VALUE!
3 -8 10
#VALUE! #VALUE!
4 5 2
#VALUE! #VALUE!
5 9 4
#VALUE! #VALUE!
5 10 15
is
-
7/28/2019 Hoja Para Interpolar Datos
16/28
-
7/28/2019 Hoja Para Interpolar Datos
17/28
-
7/28/2019 Hoja Para Interpolar Datos
18/28
-
7/28/2019 Hoja Para Interpolar Datos
19/28
RtoP, PtoR
Converts rectangular to polar coordinates and polar to rectangular
=RtoP(Rectangular Coordinate range, Origin, Coordinate number)
=PtoR(Polar Coordinate range, Origin, Coordinate number)
Coordinate number 1 2 3
Rectangular X Y Z
Polar R Theta1 Theta2Theta1 = angle in XY plane
Theta2 = angle in perpendicular plane
Where an origin is given the origin is moved to the coordinates specified
X Y R theta1 X
13 5 #VALUE! #VALUE! #VALUE!
12.510565 8.0901699 #VALUE! #VALUE! #VALUE!
11.09017 10.877853 #VALUE! #VALUE! #VALUE!
8.8778525 13.09017 #VALUE! #VALUE! #VALUE!3 17 #VALUE! #VALUE! #VALUE!
3 15 #VALUE! #VALUE! #VALUE!
-0.09017 14.510565 #VALUE! #VALUE! #VALUE!
-2.877853 13.09017 #VALUE! #VALUE! #VALUE!
-5.09017 10.877853 #VALUE! #VALUE! #VALUE!
-6.510565 8.0901699 #VALUE! #VALUE! #VALUE!
-7 5 #VALUE! #VALUE! #VALUE!
-6.510565 1.9098301 #VALUE! #VALUE! #VALUE!
-5.09017 -0.877853 #VALUE! #VALUE! #VALUE!
-2.877853 -3.09017 #VALUE! #VALUE! #VALUE!-0.09017 -4.510565 #VALUE! #VALUE! #VALUE!
3 -5 #VALUE! #VALUE! #VALUE!
6.0901699 -4 #VALUE! #VALUE! #VALUE!
8.8778525 -3.09017 #VALUE! #VALUE! #VALUE!
11.09017 -0.877853 #VALUE! #VALUE! #VALUE!
12.510565 1.9098301 #VALUE! #VALUE! #VALUE!
13 5 #VALUE! #VALUE! #VALUE!
Rotate
Rotates 2D or 3D rectangular axes about any axis
Rotate(Rectangular Coordinate range, Rotation in radians, Axis, Optional Coordin
Axis or Coordinate num 1 2 3
X Y Z
Rotate coordinates in XY plane about Z axis:
Rotation 0.7853981634 -0.785398
Axis 3 3
X Y X Y X
1.000 1.000 #VALUE! #VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
20/28
1.000 -1.000 #VALUE! #VALUE! #VALUE!
Rotate 3D coordinates about 3 axes:
Rotation 0.5235987756 30 0.3490659
Axis 1 2
X Y Z X Y Z X
1.000 1.000 1.000 #VALUE! #VALUE! #VALUE! #VALUE!-1.000 1.000 1.000 #VALUE! #VALUE! #VALUE! #VALUE!
-1.000 -1.000 1.000 #VALUE! #VALUE! #VALUE! #VALUE!
1.000 -1.000 1.000 #VALUE! #VALUE! #VALUE! #VALUE!
1.000 1.000 -1.000 #VALUE! #VALUE! #VALUE! #VALUE!
-1.000 1.000 -1.000 #VALUE! #VALUE! #VALUE! #VALUE!
-1.000 -1.000 -1.000 #VALUE! #VALUE! #VALUE! #VALUE!
1.000 -1.000 -1.000 #VALUE! #VALUE! #VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
21/28
Y dist slope
#VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
ate Number)
Y
#VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
22/28
#VALUE!
20 0.5235988 30 -0.523599
3 3
Y Z X Y Z X Y Z
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
23/28
-
7/28/2019 Hoja Para Interpolar Datos
24/28
-0.349066 -0.523599
2 1
X Y Z X Y Z
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
-
7/28/2019 Hoja Para Interpolar Datos
25/28
interp #VALUE! =interp(tablerange, value, column no) Linear interp
interp2 #VALUE! =interp2(tablerange, row value, column val) 2 way linear
loginterp #VALUE! =loginterp(tablerange, value, column no) Log interpol
loginterp2 #VALUE! =loginterp2(tablerange, row value, column val) 2 way log int
quadinterp #VALUE! =quadinterp(tablerange, value, column no) Quadratic int
Age K1 Shrinkage AgeDays Arid Column
50 100 200 400 Thickness
1 0.19 0.09 0.03 0
3 0.3 0.13 0.05 0.01
10 0.48 0.24 0.08 0.03
30 0.75 0.48 0.19 0.05
100 0.97 0.73 0.38 0.13
365 1.16 0.91 0.59 0.3
1095 1.26 1.05 0.75 0.43
3650 1.29 1.1 0.83 0.5410951 1.29 1.1 0.86 0.58
1 10 100 1000 10000 100000
0
0.2
0.4
0.6
0.8
1
1.2
1.4
X-Axis
Y-Axis
-
7/28/2019 Hoja Para Interpolar Datos
26/28
olation
interpolation
tion
erpolation
erpolation
5001
100
-
7/28/2019 Hoja Para Interpolar Datos
27/28
Disclaimer
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
A copy of the GNU General Public License may be obtained from:
The Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Copyright 2009 Interactive Design Services Pty Ltd. all rights reserved
Revision History
Current Version 1.14 19-Jul-09
Rev Date By Description
1.00 1-Jun-05 DAJ First release
1.01 14-Dec-05 DAJ Interp modified for X values in descending order
1.02 23-Dec-06 DAJ IP modified to use arrays in place of ranges
1.03 18-Jul-07 DAJ IP modified to allow array output
1.04 25-Aug-07 DAJ Quadinterp added
1.05 16-Sep-07 DAJ IPLC, IPCC, IPSS, IPSSS added.
1.06 10-Aug-08 DAJ INSIDE added, IPax separated from IP
1.07 6-Jan-09 DAJ Sign of rotation about Y axis corrected in Rotate.1.08 14-Feb-09 DAJ PDist added
1.09 24-Feb-09 DAJ PDist modified for duplicate points
1.10 4/7/2009 DAJ IP_4 function added
1.11 7/16/2009 DAJ IPSSS corrected for revised Rotate
1.12 7/18/2009 DAJ ArcCenT2IP and ArcCenP3 added
1.13 7/19/2009 DAJ Minor changes to code, no change to results
www.interactiveds.com.au
mailto:[email protected]://www.interactiveds.com.au/http://www.interactiveds.com.au/mailto:[email protected] -
7/28/2019 Hoja Para Interpolar Datos
28/28
1.14 7/19/2009 DAJ ArcCenP3_2 added