<?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: Cannot determine range and sill parameter values from GA model in ArcGIS GeoStatistical Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344610#M717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah I see. The lines to retrieve the range and sill should have read:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/model[@name = 'VariogramModel']/value[@name = 'Range']" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rnge = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/model[@name = 'VariogramModel']/value[@name = 'Sill']" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sill = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 15:35:47 GMT</pubDate>
    <dc:creator>ChrisBater</dc:creator>
    <dc:date>2011-07-11T15:35:47Z</dc:date>
    <item>
      <title>Cannot determine range and sill parameter values from GA model</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344608#M715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I am trying to iterate through some feature classes with z-vaues and determine the variogram parameters for each. For each feature class, I create a temporary geostatistical layer using a previously generated model in xml format, then I try to get the nugget, number of lags, lag size, range and sill from the new layer's xml data. Oddly, I am having no problem getting the first three parameters, but then my code fails to retrieve the range and sill. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#the geodstats model was created manually using the geostatistical analyst wizard &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geoStatsModel = r'C:\temp\Kriging2_modified.xml'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#GN1 is a fgdb feature class and 'RASTERVALU' is a field of z values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inData = 'GN1 RASTERVALU' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#create the new geostats layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.GACreateGeostatisticalLayer_ga(geoStatsModel, inData, "outCgLayer")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#now get the model parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'Nugget']"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nugget = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print 'Nugget: ',nugget&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'NumberOfLags']"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lags = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print 'Number of lags: ', lags&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'LagSize']"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lagSize = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print 'Lag size: ', lagSize&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;############################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#code fails here, won't retrieve the range or sill&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;############################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'Range']"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rnge = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print 'Range: ', rnge&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/value[@name = 'Sill']"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sill = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print 'Sill: ', sill&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 22:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344608#M715</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2011-07-08T22:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot determine range and sill parameter values from GA model</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344609#M716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked in the help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Set_Model_Parameter/00300000001m000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Set_Model_Parameter/00300000001m000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 12:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344609#M716</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2011-07-09T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot determine range and sill parameter values from GA model</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344610#M717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah I see. The lines to retrieve the range and sill should have read:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/model[@name = 'VariogramModel']/value[@name = 'Range']" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rnge = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlPath = "/model[@name = 'Kriging']/model[@name = 'Variogram']/model[@name = 'VariogramModel']/value[@name = 'Sill']" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sill = arcpy.GAGetModelParameter_ga("outCgLayer", xmlPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 15:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/cannot-determine-range-and-sill-parameter-values/m-p/344610#M717</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2011-07-11T15:35:47Z</dc:date>
    </item>
  </channel>
</rss>

