<?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: Automatically generate anisotropic semivariogram parameters in ArcGIS GeoStatistical Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336159#M706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sorry, I messed up.&amp;nbsp; If you only change the auto flags for the major and minor ranges, it will calculate them assuming the other parameters are correct.&amp;nbsp; Since the other parameters were calculated for the very first dataset, they will not match new datasets, and the calculation of the major/minor range will get corrupted.&amp;nbsp; You'll need tell the model to recalculate everything before querying the ranges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached an .zip file that contains an XML file that has all the flags changed in order to properly recalculate the anisotropy parameters.&amp;nbsp; Use this file as the model source in Create Geostatistical Layer.&amp;nbsp; Use the same XML path codes as above to query the major/minor ranges with Get Model Parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you want to query the angle of the major range, use this XML path code in Get Model Parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']/value[@name='Direction']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the mess up, but this workflow should work now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 17:01:18 GMT</pubDate>
    <dc:creator>EricKrause</dc:creator>
    <dc:date>2013-02-01T17:01:18Z</dc:date>
    <item>
      <title>Automatically generate anisotropic semivariogram parameters</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336156#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just starting to learn how to work with ArcGIS, and I am specifically trying to automatically generate anisotropic semivariogram parameters for a series of data sets, which I can then output for subsequent use. I have managed to do this with isotropic semivariogram parameters, by first creating a geostatistical model manually, and then using the moving window kriging function to generate the semivariogram parameters automatically based on the created model. I need to process a few hundred data sets, so manually generating the parameters all of the time will not work for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to get the moving window kirging function to estimate anisotropic semivariogram parameters? If not, is there any other way to automatically estimate these parameters? I know I can specify an anisotropic semivariogram model using the geostatistical analyst wizard, but as far as I know I cannot automate the wizard to automatically calculate the anisotropic semivariogram parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 21:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336156#M703</guid>
      <dc:creator>AndreaEvans</dc:creator>
      <dc:date>2013-01-21T21:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically generate anisotropic semivariogram parameters</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336157#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to do something similar to the steps in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/75305-Scripting-IDW-optimize-power-parameter"&gt;this topic&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After you create a geostatistical layer using kriging with anisotropy turned on, you need to call the Set Model Parameter gp tool with your geostatistical layer as the model source.&amp;nbsp; You need to set the "auto" flag for the major and minor ranges to "true".&amp;nbsp; The code you'll need is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter XML path: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']/value[@name='Range']/@auto; /model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']/value[@name = 'MinorRange']/@auto&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter value: true; true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Save the output xml file in a convenient location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you need to use the Create Geostatistical Layer gp tool.&amp;nbsp; Use the xml file you saved above as the model source, and give it a new dataset.&amp;nbsp; Run the tool, and you'll get a new geostatistical layer where the major and minor ranges have been recalculated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then query the major and minor ranges by running Get Model Parameter gp tool twice.&amp;nbsp; For the model source, give it the geostatistical layer that you created from Create Geostatistical Layer, and use the following XML path code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']/value[@name='Range']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']/value[@name = 'MinorRange']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first bit of code will return the major range.&amp;nbsp; The second will return the minor range.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You only need to do Set Model Parameter once, and you can iterate through your datasets and keep re-using that xml file in Create Geostatistical Layer.&amp;nbsp; For each new geostatistical layer, use Get Model Parameter to query the major and minor ranges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that was clear.&amp;nbsp; Let me know if you run into problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 20:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336157#M704</guid>
      <dc:creator>EricKrause</dc:creator>
      <dc:date>2013-01-30T20:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically generate anisotropic semivariogram parameters</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336158#M705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the reply... I tried it out on one file in my series and your solution worked exactly as I needed it to! Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336158#M705</guid>
      <dc:creator>AndreaEvans</dc:creator>
      <dc:date>2013-02-01T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically generate anisotropic semivariogram parameters</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336159#M706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sorry, I messed up.&amp;nbsp; If you only change the auto flags for the major and minor ranges, it will calculate them assuming the other parameters are correct.&amp;nbsp; Since the other parameters were calculated for the very first dataset, they will not match new datasets, and the calculation of the major/minor range will get corrupted.&amp;nbsp; You'll need tell the model to recalculate everything before querying the ranges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached an .zip file that contains an XML file that has all the flags changed in order to properly recalculate the anisotropy parameters.&amp;nbsp; Use this file as the model source in Create Geostatistical Layer.&amp;nbsp; Use the same XML path codes as above to query the major/minor ranges with Get Model Parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you want to query the angle of the major range, use this XML path code in Get Model Parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']/value[@name='Direction']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the mess up, but this workflow should work now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 17:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336159#M706</guid>
      <dc:creator>EricKrause</dc:creator>
      <dc:date>2013-02-01T17:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically generate anisotropic semivariogram parameters</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336160#M707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the update, but don't worry; I had already noticed that issue once I started working on the code and made sure that I let all the required parameters be updated. Thank you for the xml file though. It provided a good check for me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I am doing a linear combination of models, I noticed that in the xml file they are all simply labeled as 'variogramModel' with no distinction in the model name. Do you know how I can access the parameters (i.e. range, sill, etc) from each? (I am not sure how to distinguish the xml path since all three sub-components of the variogram model have the same name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336160#M707</guid>
      <dc:creator>AndreaEvans</dc:creator>
      <dc:date>2013-02-01T18:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically generate anisotropic semivariogram parameters</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336161#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can index the model with something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/model[@name='Kriging']/model[@name='Variogram']/model[@name='VariogramModel']&lt;/SPAN&gt;&lt;STRONG&gt;[0]&lt;/STRONG&gt;&lt;SPAN&gt;/value[@name='Range']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Putting the index number in brackets after the model name will tell it which one to go to.&amp;nbsp; If you don't supply an index number, it will use the first one it finds.&amp;nbsp; An index of "0" refers to the first element; "1" refers to the second, "2" to the third, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/automatically-generate-anisotropic-semivariogram/m-p/336161#M708</guid>
      <dc:creator>EricKrause</dc:creator>
      <dc:date>2013-02-01T18:54:39Z</dc:date>
    </item>
  </channel>
</rss>

