<?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 Re: Populate MakeValueArray() for Spatial Analyst Kriging in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210648#M8719</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Spherical already means Ordinary. Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/kriging.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/kriging.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can check all parameters starting that tool directly from ArcGIS Pro. After execution right click in history window and copy python script. It must be like this below:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;out_surface_raster = arcpy.sa.Kriging(r"C:\Temp\Learn.gdb\points", "zField", "Spherical 3,000000 200,000000 100,000000 0,000000", 10, "VARIABLE 12", None); out_surface_raster.save(r"C:\Temp\Learn.gdb\output")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 08 Sep 2022 05:32:38 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-09-08T05:32:38Z</dc:date>
    <item>
      <title>Populate MakeValueArray() for Spatial Analyst Kriging</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210637#M8718</link>
      <description>&lt;P&gt;Is there any system for populating the parameters of a MakeValueArray()?&lt;/P&gt;&lt;P&gt;Below... the MakeValueArray() is populated correctly... except for the SemiVariogram properties.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
        {
            var progDlg = new ProgressDialog("Running Geoprocessing Tool", "Cancel", 100, true);
            progDlg.Show();

            string inputPointFeatures = @"C:\Temp\Learn.gdb\points";
            string zValueField = "zField";
            string outputRaster = @"C:\Temp\Learn.gdb\output";
            string semiVariogram = "Ordinary Spherical 3 200 100 0";
            string outputCellSize = "1";
            string krigParameters = "Variable 4 150";
            string outputVariance = "";
            
            string tool = "C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcToolBox\\" +
                              "toolboxes\\Spatial Analyst Tools.tbx\\" + "Kriging";

            var parameters = Geoprocessing.MakeValueArray(inputPointFeatures, zValueField, 
                outputRaster, semiVariogram, outputCellSize, krigParameters, outputVariance);

            Geoprocessing.OpenToolDialog(tool, parameters);
            
            progDlg.Hide();
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 02:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210637#M8718</guid>
      <dc:creator>JeromeHaaland</dc:creator>
      <dc:date>2022-09-08T02:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Populate MakeValueArray() for Spatial Analyst Kriging</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210648#M8719</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Spherical already means Ordinary. Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/kriging.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/kriging.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can check all parameters starting that tool directly from ArcGIS Pro. After execution right click in history window and copy python script. It must be like this below:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;out_surface_raster = arcpy.sa.Kriging(r"C:\Temp\Learn.gdb\points", "zField", "Spherical 3,000000 200,000000 100,000000 0,000000", 10, "VARIABLE 12", None); out_surface_raster.save(r"C:\Temp\Learn.gdb\output")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Sep 2022 05:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210648#M8719</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-09-08T05:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Populate MakeValueArray() for Spatial Analyst Kriging</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210744#M8722</link>
      <description>&lt;P&gt;Thank You... That is exactly the system that I was looking for.&amp;nbsp; It works well.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 13:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/populate-makevaluearray-for-spatial-analyst/m-p/1210744#M8722</guid>
      <dc:creator>JeromeHaaland</dc:creator>
      <dc:date>2022-09-08T13:23:56Z</dc:date>
    </item>
  </channel>
</rss>

