<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Interpolation 2 points in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701128#M54327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have point shapefile. Some points have Z value and others not. I have to determin somehow missing values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to do next:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0.) find a point(1) without Z value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) select two points(2,3) with Z value on the opposit side of first point(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) calculate average Z of points(2,3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) select point(1) and write calculated average Z in Z column of point(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had once code for this in Avenue (AV 3.3), but now is different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me some advice?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 05:45:21 GMT</pubDate>
    <dc:creator>FranciNovak</dc:creator>
    <dc:date>2013-11-13T05:45:21Z</dc:date>
    <item>
      <title>Interpolation 2 points</title>
      <link>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701128#M54327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have point shapefile. Some points have Z value and others not. I have to determin somehow missing values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to do next:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0.) find a point(1) without Z value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) select two points(2,3) with Z value on the opposit side of first point(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) calculate average Z of points(2,3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) select point(1) and write calculated average Z in Z column of point(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had once code for this in Avenue (AV 3.3), but now is different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me some advice?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 05:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701128#M54327</guid>
      <dc:creator>FranciNovak</dc:creator>
      <dc:date>2013-11-13T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolation 2 points</title>
      <link>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701129#M54328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have point shapefile. Some points have Z value and others not. I have to determin somehow missing values.&lt;BR /&gt;I want to do next:&lt;BR /&gt;0.) find a point(1) without Z value&lt;BR /&gt;1.) select two points(2,3) with Z value on the opposit side of first point(1)&lt;BR /&gt;2.) calculate average Z of points(2,3)&lt;BR /&gt;3.) select point(1) and write calculated average Z in Z column of point(1)&lt;BR /&gt;&lt;BR /&gt;I had once code for this in Avenue (AV 3.3), but now is different.&lt;BR /&gt;&lt;BR /&gt;Can you give me some advice?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;H Franci,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it is necessary to provide some more information in order to solve it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;how do you want to determine the points on opposite sides of the current point without Z?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;what to do if one of those point doesn't have a Z value itself?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;wouldn't it be more accurate to use a distance weighted average value?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;what if you can't interpolate between points and have to extrapolate?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;do the points represent vertices on a line or are they randomly distributed?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;In this case maybe the easiest way would be to create a surface or &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00q90000001v000000"&gt;TIN &lt;/A&gt;&lt;SPAN&gt;based of the known Z values and then use "&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00q900000016000000"&gt;Add Surface Information (3D Analyst)&lt;/A&gt;&lt;SPAN&gt;" to obtain the Z values in the point feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 11:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701129#M54328</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-13T11:59:50Z</dc:date>
    </item>
    <item>
      <title>illustration</title>
      <link>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701130#M54329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It would be only approximately interpolation for rare single points without Z.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is not enough points (digital elevation model) for using Spatial Analyst.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like only to obtain constant fall of elevation (Z) in one direction (manholes invert elevation - sewage system).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In AV 3.3 I had 2 icons:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I selected two points(2,3) on the opposit side of first point(1). &lt;/SPAN&gt;&lt;STRONG&gt;Pressed 1 icon &lt;/STRONG&gt;&lt;SPAN&gt;and got (x2, y2, z2) and (x3, y3, z3) in the memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I selected points(1) without Z. &lt;/SPAN&gt;&lt;STRONG&gt;Pressed 2 icon &lt;/STRONG&gt;&lt;SPAN&gt;and got (x1, y1). It was calculated z1 depends on distance from point x2 and x3 and Z value was written in table (linear interpolation).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 08:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701130#M54329</guid>
      <dc:creator>FranciNovak</dc:creator>
      <dc:date>2013-12-24T08:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolation 2 points</title>
      <link>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701131#M54330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I simplify whole procedure.&lt;/P&gt;&lt;P&gt;I have point shapefile (manholes).&lt;BR /&gt;Each manhole should have data about invert elevation and terrain elevation.&lt;BR /&gt;But some manholes don't have invert elevation data.&lt;/P&gt;&lt;P&gt;Is possible in Python to do next task in one move (click):&lt;BR /&gt;1.) Selecting 3 points.&lt;BR /&gt;2.) Calculating (z1+z3)/2 from point which have data and assign this value to point where is no data (0)&lt;/P&gt;&lt;P&gt;(see Picture belowe).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/18457_pic.jpg" style="width: 620px; height: 408px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 08:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/interpolation-2-points/m-p/701131#M54330</guid>
      <dc:creator>FranciNovak</dc:creator>
      <dc:date>2014-10-07T08:20:26Z</dc:date>
    </item>
  </channel>
</rss>

