<?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 Conversion from GA layer to grid in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/conversion-from-ga-layer-to-grid/m-p/491098#M16409</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;BR /&gt;&lt;SPAN&gt;I am trying to batch process the conversion of GAlayer (layer created as a output of Geostatistical analyst interpolation) to raster grid. I found this code, but I have no idea where the output of Geostatistical interpolation is stored. From the attached code my guess is it should be with a .lyr extension and I searched for the files with this extension and didn't find any files in temp directory and even in the directory where the source shape files are maintained. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So two things, where the .lyr is created? and how to batch process the conversion from GAlyr to Grid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deep&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Purpose: Export a Geostatistical layer to a GRID.

# Create the Geoprocessor object.
import arcgisscripting
gp = arcgisscripting.create()

try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the input GA layer.
&amp;nbsp;&amp;nbsp;&amp;nbsp; inputGALayer = "c:/data/Input/idw.lyr"

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the output grid name.
&amp;nbsp;&amp;nbsp;&amp;nbsp; outputGrid = "out_grid" 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set some of the parameters.
&amp;nbsp;&amp;nbsp;&amp;nbsp; cell_size = 2
&amp;nbsp;&amp;nbsp;&amp;nbsp; points_horiz = 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; points_vert = 1

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check out GeoStatistical Analyst extension license.
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CheckOutExtension("GeoStats") 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: GA Layer To Grid...
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GALayerToGrid_ga (inputGALayer, outputGrid, cell_size, points_horiz, points_vert)

except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred while running a tool, then print the messages.
&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages() 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepananthan Dhanasekaran&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graduate student&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MS Geodetic Science - Mapping and GIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Ohio State University&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Columbus, OH 43210-1275&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Phone: +1 614-795-0465 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Web: &lt;/SPAN&gt;&lt;A href="http://bprc.osu.edu/~dhanasekaran.2/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://bprc.osu.edu/~dhanasekaran.2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 21:37:10 GMT</pubDate>
    <dc:creator>DeepananthanDhanasekaran1</dc:creator>
    <dc:date>2021-12-11T21:37:10Z</dc:date>
    <item>
      <title>Conversion from GA layer to grid</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/conversion-from-ga-layer-to-grid/m-p/491098#M16409</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;BR /&gt;&lt;SPAN&gt;I am trying to batch process the conversion of GAlayer (layer created as a output of Geostatistical analyst interpolation) to raster grid. I found this code, but I have no idea where the output of Geostatistical interpolation is stored. From the attached code my guess is it should be with a .lyr extension and I searched for the files with this extension and didn't find any files in temp directory and even in the directory where the source shape files are maintained. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So two things, where the .lyr is created? and how to batch process the conversion from GAlyr to Grid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deep&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Purpose: Export a Geostatistical layer to a GRID.

# Create the Geoprocessor object.
import arcgisscripting
gp = arcgisscripting.create()

try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the input GA layer.
&amp;nbsp;&amp;nbsp;&amp;nbsp; inputGALayer = "c:/data/Input/idw.lyr"

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set the output grid name.
&amp;nbsp;&amp;nbsp;&amp;nbsp; outputGrid = "out_grid" 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set some of the parameters.
&amp;nbsp;&amp;nbsp;&amp;nbsp; cell_size = 2
&amp;nbsp;&amp;nbsp;&amp;nbsp; points_horiz = 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; points_vert = 1

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check out GeoStatistical Analyst extension license.
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.CheckOutExtension("GeoStats") 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: GA Layer To Grid...
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.GALayerToGrid_ga (inputGALayer, outputGrid, cell_size, points_horiz, points_vert)

except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred while running a tool, then print the messages.
&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages() 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepananthan Dhanasekaran&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graduate student&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MS Geodetic Science - Mapping and GIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Ohio State University&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Columbus, OH 43210-1275&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Phone: +1 614-795-0465 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Web: &lt;/SPAN&gt;&lt;A href="http://bprc.osu.edu/~dhanasekaran.2/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://bprc.osu.edu/~dhanasekaran.2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/conversion-from-ga-layer-to-grid/m-p/491098#M16409</guid>
      <dc:creator>DeepananthanDhanasekaran1</dc:creator>
      <dc:date>2021-12-11T21:37:10Z</dc:date>
    </item>
  </channel>
</rss>

