<?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 Converting ASCII to Raster using arcpy (LINUX) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/converting-ascii-to-raster-using-arcpy-linux/m-p/151414#M8521</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 having trouble batch converting some ESRI ASCII files to Raster using arcpy on a LINUX server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The arcpy code I am running is below, where I have predefined the variables as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;ASCII_to_RASTER_infile = "/home/array.txt"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;ASCII_to_RASTER_outfile = "/home/raster"&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;import arcpy&lt;BR /&gt;arcpy.ASCIIToRaster_conversion(ASCII_to_RASTER_infile, ASCII_to_RASTER_outfile, "FLOAT")&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010158: Unable to open file /HOME/ARRAY.TXT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ASCIIToRaster).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the headers in my ESRI ASCII file which look correct. I have also successfully converted this ESRI ASCII file to raster in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could this be a problem with directory paths in Linux (being different for windows) and if so is there a way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 15:25:01 GMT</pubDate>
    <dc:creator>NeilRoberts</dc:creator>
    <dc:date>2011-03-02T15:25:01Z</dc:date>
    <item>
      <title>Converting ASCII to Raster using arcpy (LINUX)</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-ascii-to-raster-using-arcpy-linux/m-p/151414#M8521</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 having trouble batch converting some ESRI ASCII files to Raster using arcpy on a LINUX server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The arcpy code I am running is below, where I have predefined the variables as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;ASCII_to_RASTER_infile = "/home/array.txt"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;ASCII_to_RASTER_outfile = "/home/raster"&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;import arcpy&lt;BR /&gt;arcpy.ASCIIToRaster_conversion(ASCII_to_RASTER_infile, ASCII_to_RASTER_outfile, "FLOAT")&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010158: Unable to open file /HOME/ARRAY.TXT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ASCIIToRaster).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the headers in my ESRI ASCII file which look correct. I have also successfully converted this ESRI ASCII file to raster in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could this be a problem with directory paths in Linux (being different for windows) and if so is there a way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 15:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-ascii-to-raster-using-arcpy-linux/m-p/151414#M8521</guid>
      <dc:creator>NeilRoberts</dc:creator>
      <dc:date>2011-03-02T15:25:01Z</dc:date>
    </item>
  </channel>
</rss>

