<?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: Steve Lynch: Is it possible to do Cokriging script? in ArcGIS GeoStatistical Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177521#M457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Steve and all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read with attention posts about cokriging. I also have to produce cokriging with more than 2500 variables (Elevation+rainfall). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure to be in the good thematic but I try, because some of you have probably solved (I think) my problem in their script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new in python and I don't manage lists. I would like to use them to create geostatical layer. I used model builder (models work) but I must write now cokriging script without model builder (export from model builder to python script is not enough...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I made list of shapefiles and list of values for the field rainfall. But I have this answer in the python shell:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Traceback (most recent call last):
&amp;nbsp; File "C:\INTERP\sCRIPT PYTHON\FC4.py", line 75, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset1 = fc + NewList
TypeError: coercing to Unicode: need string or buffer, list found&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that my code is not good and my lists must be transformed before to use them to create geost. layers. But I don't know how and where.......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone have an idea, a solution? It would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import sys, string, os, arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()

def listFcsInGDB():
&amp;nbsp;&amp;nbsp;&amp;nbsp; # list all Feature Classes in a geodatabase 
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.workspace = "C:\\INTERP\\PJ_class.gdb"

&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fds in gp.ListDatasets('','feature') + ['']:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in gp.ListFeatureClasses('','',fds):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #yield os.path.join(fds, fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs.append(os.path.join(fds, fc))
&amp;nbsp;&amp;nbsp;&amp;nbsp; return fcs

fcs = listFcsInGDB()
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc

# List of value in fields
input_dataset =&amp;nbsp; fc&amp;nbsp;&amp;nbsp; 
Atts = 'PJ_RacPJ'&amp;nbsp;&amp;nbsp;&amp;nbsp; #field with rainfall values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

rows = gp.searchcursor(fc)
row = rows.next()

NewList = []
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in gp.SearchCursor(fc):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcValue = row.getvalue(Atts)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewList.append(fcValue)
#print NewList

arcpy.CheckOutExtension("GeoStats")

# Load required toolboxes
arcpy.ImportToolbox("C:/Documents and Settings/ArcGIS/Toolbox.tbx")

# Local variables:
Cokriging_xml = "C:\\INTERP\\COK_.xml"
CK = "CK2"
ids1 = "C:\\INTERP\\data.gdb\\dem1000"


for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fcValue in NewList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset1 = fc + NewList #Variables
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset2 = ids1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Covariable
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InputDset = "inputDset1;inputDset2"

# Create cokriging layer (code from model builder)

&amp;nbsp;&amp;nbsp;&amp;nbsp; tempEnvironment0 = gp.autoCommit
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.autoCommit = "1000"
&amp;nbsp;&amp;nbsp;&amp;nbsp; tempEnvironment1 = gp.spatialGrid1
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.spatialGrid1 = "0"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.GACreateGeostatisticalLayer_ga(Cokriging_xml,InputDset,CK)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.autoCommit = tempEnvironment0
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.spatialGrid1 = tempEnvironment1&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Naho&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:07:20 GMT</pubDate>
    <dc:creator>N_G_</dc:creator>
    <dc:date>2021-12-11T09:07:20Z</dc:date>
    <item>
      <title>Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177500#M436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steven Llynch,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to interpolate more than 1000 precipitation maps with Cokriging method, but I don't know if it is possible to use python scripit programming, because I can't find this tool in ArcToolbox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw your old reply about this topic as following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Message - Create a cokriging layer using the Wizard &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Use the Get and Set Model Parameter tool to modify parameters if required &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - use Create Geostatistical Layer tool to modify the input dataset or variable used in the cokriging layer "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't really understand, could you give me an example in python script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will be very grateful for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yumei Hu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 13:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177500#M436</guid>
      <dc:creator>YumeiHu</dc:creator>
      <dc:date>2010-04-30T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177501#M437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create a Geostatistical Layer using cokriging. This is done once off using the Geostatistical Wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in a Py script please do the following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- use the Set Model Parameter to change any of the kriging parameters in the above layer (if required)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- use Create Geostatistical Layer tool to use the above and the data you want to interpolate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Repeat the above steps for each dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PLease look at the examples in the Help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve Lynch&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 11:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177501#M437</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2010-05-03T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177502#M438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your replying. I know how to do the programming for kriging.However,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean the step -'Create a Geostatistical Layer using cokriging. This is done once off using the Geostatistical Wizard.' can not be done with python script programming? Because I have large amount of data, it is reallly hard to click one by one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yumei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 07:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177502#M438</guid>
      <dc:creator>YumeiHu</dc:creator>
      <dc:date>2010-05-04T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177503#M439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get your meaning now, but I also get new problem, when I try to use new shapefile to create Geostatistical layer, it always tell me &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 045001: Input dataset(s) error. Table of inputs is not complete."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I don't know why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I create the layer in Geostatistical wizard, I used precipitation and elevation two fields, I tried to replace them with the new shapefile, but it doesn't work!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yumei Hu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ps. # Purpose: Create a new Geostatistical layer based on a previous one&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the Geoprocessor object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the input GA layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputGALayer = "C:/Users/Public/Yumei/yumei/mytest0308/GA.lyr"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the new input dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset = "C:/Users/Public/Yumei/yumei/RE-compute/Interpp3ptV2/south/Interp_southV2_03.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset1 = inputDset + " AveP"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset2 = inputDset + " Alt2k"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set output layer name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outLayer = "Interp_s03"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check out Geostatistical Analyst extension license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CheckOutExtension("GeoStats") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Create a Geostatistical layer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GACreateGeostatisticalLayer(inputGALayer,inputDset1 + inputDset2, outLayer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred while running a tool, then print the messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 08:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177503#M439</guid>
      <dc:creator>YumeiHu</dc:creator>
      <dc:date>2010-05-04T08:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177504#M440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create a cokriging Geostatistical layer, then use this in the Create Geostatistical Layer GP tool and you'll notice from the results posted to results dialog that you are missing a semicolon between the 2 input datasets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Viz.,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GACreateGeostatisticalLayer "Ordinary Cokriging" "C:\\Data\ca_ozone_pts.shp f1;C:\Data\ca_ozone_pts.shp f2" GAL1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:00:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177504#M440</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2010-05-04T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177505#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve Lynch,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With your help, I have finally find the way to do&amp;nbsp; the programming, I think I can finish it soon. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very very....much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yumei&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a cokriging Geostatistical layer, then use this in the Create Geostatistical Layer GP tool and you'll notice from the results posted to results dialog that you are missing a semicolon between the 2 input datasets.&lt;BR /&gt;&lt;BR /&gt;Viz.,&lt;BR /&gt;GACreateGeostatisticalLayer "Ordinary Cokriging" "C:\\Data\ca_ozone_pts.shp f1;C:\Data\ca_ozone_pts.shp f2" GAL1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 13:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177505#M441</guid>
      <dc:creator>YumeiHu</dc:creator>
      <dc:date>2010-05-04T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177506#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to automate a bunch of GA processes and my initial script appears to be working.&amp;nbsp; But how can I view or add my output GA layer to ArcMap?&amp;nbsp; I know this sounds silly, but I cannot figure out how to view my output, tmpLyr after the process runs.&amp;nbsp; Either it's not producing it (which if I run the script a second time, Python tells me tmpLyr already exists) or I just don't know how to add it to ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really need to see it so much as I will need to export it to a raster in the next step.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(edited: This code works and I can view the output grid just fine but it might still be nice to be able to view the GA layer mid way though the process)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Purpose: Create a new Geostatistical layer based on a previous one&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the Geoprocessor object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.workspace = "C:\\working\\Y2010\\ECSR\\Plant"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#gp.toolbox = "ga"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the input GA layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputGALayer = "C:\\working\\Y2010\\ECSR\\xml\\DS\\DS01_Pre2010.xml"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the new input dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset = "C:\\working\\Y2010\\ECSR\\Plant\\ECSR_Plant2009_working.gdb\\DS_P120_2009\\DS01_P120_2009_Plant"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset = inputDset + " BV_4ft"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set output layer name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outLayer = "C:\\working\\Y2010\\ECSR\\rasters\\temp\\tempLyr"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check out Geostatistical Analyst extension license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CheckOutExtension("GeoStats") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Create a Geostatistical layer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GACreateGeostatisticalLayer( inputGALayer, inputDset, outLayer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred while running a tool, then print the messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the input GA layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputGALyr = "C:\\working\\Y2010\\ECSR\\rasters\\temp\\tempLyr"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the output grid name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputGrid = "C:\\working\\Y2010\\ECSR\\rasters\\temp\\out_grid" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set some of the parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell_size = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; points_horiz = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; points_vert = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check out GeoStatistical Analyst extension license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #gp.CheckOutExtension("GeoStats") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: GA Layer To Grid...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GALayerToGrid_ga (inputGALyr, outputGrid, cell_size, points_horiz, points_vert)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred while running a tool, then print the messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177506#M442</guid>
      <dc:creator>BryceStath</dc:creator>
      <dc:date>2010-09-10T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177507#M443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The geostatistical layer is an in memory layer. To persist it, use the SaveToLayerFile tool, viz.,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usage: SaveToLayerFile &amp;lt;in_layer&amp;gt; &amp;lt;out_layer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 18:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177507#M443</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2010-09-10T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177508#M444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to automate the production of my xml files (I have 120 xml files to produce, which will then be applied to cokrig more files using the code discussed above).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only parameter I am changing in the cokriging process is to press the "optimize model" button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I cokrig two shapefiles &amp;amp; "optimize" the model using Python, then alter the script to loop through my 120 files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brenna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 17:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177508#M444</guid>
      <dc:creator>BrennaForester</dc:creator>
      <dc:date>2011-01-26T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177509#M445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need to automate the production of my xml files (I have 120 xml files to produce, which will then be applied to cokrig more files using the code discussed above).&lt;BR /&gt;&lt;BR /&gt;The only parameter I am changing in the cokriging process is to press the "optimize model" button.&lt;BR /&gt;&lt;BR /&gt;Can I cokrig two shapefiles &amp;amp; "optimize" the model using Python, then alter the script to loop through my 120 files?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Brenna&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You only need to create a single xml.&amp;nbsp; Run the wizard with cokriging, and save the xml at the end.&amp;nbsp; Open the xml with a text editor, and the second line of code should read:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;model name="Kriging"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the following optimize tag to that line (which is case-sensitive):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;model name="Kriging" optimize = "ByCrossvalidation"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Save the xml, and use it as the model source in the Create Geostatistical Layer tool.&amp;nbsp; Then provide two new cokriging datasets, and the output will be a geostatistical layer that will be the same as if you had pressed the optimize button on the new data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just keep looping the CGL tool and providing it the original altered xml, and all the outputs will behave as if you had pressed the optimize button in the Wizard with the new datasets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information can be found in these links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/11981-Spatial-Analyst-Interpolation-versus-Geostatistical-Analyst-Wizard"&gt;http://forums.arcgis.com/threads/11981-Spatial-Analyst-Interpolation-versus-Geostatistical-Analyst-Wizard&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2010/06/18/Automating-geostatistical-interpolation-using-template-layers.aspx"&gt;http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2010/06/18/Automating-geostatistical-interpolation-using-template-layers.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: The optimize button was added in ArcGIS 10, so this process won't work for any versions before 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 21:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177509#M445</guid>
      <dc:creator>EricKrause</dc:creator>
      <dc:date>2011-01-27T21:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177510#M446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eric - thank you!&amp;nbsp; You have saved me a huge amount of work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One last question - I would like to export/save prediction errors for each model: mean, root-mean-square, mean standardization, RMS standardization and average standard error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What script would I add to output these errors; perhaps save as a txt file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brenna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 16:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177510#M446</guid>
      <dc:creator>BrennaForester</dc:creator>
      <dc:date>2011-01-28T16:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177511#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brenna&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the Cross validation tool that is new at 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Cross_Validation/00300000000z000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Cross_Validation/00300000000z000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in Python you'll do something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cvResults = arcpy.CrossValidation_ga("CoKriging")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print cvResults.rootMeanSquare&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print cvResults.the other ones you need&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and so on (you will write these to a file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 17:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177511#M447</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2011-01-28T17:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177512#M448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the feedback, Steve &amp;amp; Eric - my script is working perfectly!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Brenna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 20:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177512#M448</guid>
      <dc:creator>BrennaForester</dc:creator>
      <dc:date>2011-02-01T20:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177513#M449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i followed all your recommendation, but according to my result I think that change of auto="true" in XML is not working properly. The think is that if I do so, all my semivariograms parameters differ in comparison to the parameters which is possible to obtain through Geostatistical Wizard. I perform this "test" on modelling of an indicator ( of course i leave the auto="false" value for the indicator threshold) and my parameters differ (f.e. lag size in geostatistical wizard is 129.14 and in python script 1225.65)&amp;nbsp;&amp;nbsp; Could somebody have some idea why? If somebody interests i also attaching example files. To run the script&amp;nbsp; just simply unzip the dictionary to c:\. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert Pazur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 07:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177513#M449</guid>
      <dc:creator>RobertPazur</dc:creator>
      <dc:date>2011-05-02T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177514#M450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; How can I save the outlayer into a folder where i specify in the script? I have set the outlayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Viz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outLayer = "D:/uk/out/m1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But after the execution of my script without any error messages, I find nothing in the folder "d:/uk/out/".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bests,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiejun Liu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;####################&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputGALayer = "D:/uk/Universal Cokriging.xml"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ids1 = "D:/2000_1995/samples1029/culd/1/pro/1.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ids2 = "D:/uk/culd2005.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset1 = ids1 + " culdArea"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputDset2 = ids2 + " GRID_CODE"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set output layer name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outLayer = "D:/uk/out/m1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Check out Geostatistical Analyst extension license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CheckOutExtension("GeoStats") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Create a Geostatistical layer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GACreateGeostatisticalLayer(inputGALayer,inputDset1 + ";" + inputDset2, outLayer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;##############################&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Steve Lynch,&lt;BR /&gt;&lt;BR /&gt;With your help, I have finally find the way to do&amp;nbsp; the programming, I think I can finish it soon. &lt;BR /&gt;Thank you very very....much!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Yumei&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 11:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177514#M450</guid>
      <dc:creator>liutiejun</dc:creator>
      <dc:date>2011-05-19T11:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177515#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Run the CreateGeostatisticalLayer geoprocessing tool and then look at the syntax reported in the processing dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 12:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177515#M451</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2011-05-19T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177516#M452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have found the mistake in my script, I have misspelled the folder name of input layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; However, another question puzzles me that where the outlayer is. Does it only exist in memory as an object?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bests,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiejun Liu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Run the CreateGeostatisticalLayer geoprocessing tool and then look at the syntax reported in the processing dialog.&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 12:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177516#M452</guid>
      <dc:creator>liutiejun</dc:creator>
      <dc:date>2011-05-19T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177517#M453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is in memory. To persist it use the SaveToLayerFile geoprocessing tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 12:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177517#M453</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2011-05-19T12:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177518#M454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bests,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiejun Liu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes it is in memory. To persist it use the SaveToLayerFile geoprocessing tool&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 13:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177518#M454</guid>
      <dc:creator>liutiejun</dc:creator>
      <dc:date>2011-05-19T13:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Steve Lynch: Is it possible to do Cokriging script?</title>
      <link>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177519#M455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you please tell me how to release or remove the outlayer from memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bests,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiejun Liu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes it is in memory. To persist it use the SaveToLayerFile geoprocessing tool&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 14:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geostatistical-analyst-questions/steve-lynch-is-it-possible-to-do-cokriging-script/m-p/177519#M455</guid>
      <dc:creator>liutiejun</dc:creator>
      <dc:date>2011-05-19T14:06:33Z</dc:date>
    </item>
  </channel>
</rss>

