<?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: How to use a text file (CSV) list as input as well as outputs in Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507259#M16866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest way to access CSV files is to access them as tables. Just be sure you use nice safe field names (&amp;lt; 10 characters, alphanumeric + "_", start with an alpha character) and the iterator tools can use them for a loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For output, probably the easiest way to dump CSV is using a short python function pasted inside the Calculate Value tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 21:47:38 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-06-27T21:47:38Z</dc:date>
    <item>
      <title>How to use a text file (CSV) list as input as well as outputs in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507258#M16865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example. I have multiple geo-referenced aerial photographs (TIFF formats) across various directories in the network. I create foot-prints shape file using FME. A sub-set (say 212 out of 2500) of these TIFFs are selected from the shape file and exported as a text file (CSV table). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was so far using a python script ( a simple one) to re-project these TIFFs from the CSV into a different directory with the same names and extension (.tif). Will I be able to input this CSV file in a model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samuel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 19:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507258#M16865</guid>
      <dc:creator>D__SamuelRajasekhar</dc:creator>
      <dc:date>2014-06-27T19:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a text file (CSV) list as input as well as outputs in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507259#M16866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest way to access CSV files is to access them as tables. Just be sure you use nice safe field names (&amp;lt; 10 characters, alphanumeric + "_", start with an alpha character) and the iterator tools can use them for a loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For output, probably the easiest way to dump CSV is using a short python function pasted inside the Calculate Value tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 21:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507259#M16866</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-06-27T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a text file (CSV) list as input as well as outputs in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507260#M16867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;below is the python script I was using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Location where the images will be copied to:

arcpy.env.workspace = r'R:\RhodeIsland_imagery_20130118\1951_1952_RIUTM_GeoTIFF\ArcReProject'

# Set the output projection, i.e., the zone number

with open(r'X:\Archive\Python_Scripts\UTM_19.txt', 'r') as f:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prj = f.readlines()[0]


outPath = arcpy.env.workspace

istFiles = open(r'R:\RhodeIsland_imagery_20130118\1951_1952_RIUTM_GeoTIFF\Index\List_Files_UTM.csv', 'r')
for inputRasters in listFiles.readlines():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputFilenames = os.path.splitext(os.path.basename(inputRasters))[0]
&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; outPut = os.path.join(outPath,inputFilenames + ".tif")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ProjectRaster_management(inputRasters, outPut, prj)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the table (the location of TIFFs):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_5R50_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_5R51_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_5R52_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_5R53_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_5R54_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_5R55_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R1_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R10_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R11_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R12_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R13_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R14_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R15_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R16_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R2_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R3_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R4_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R5_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R6_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R7_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R8_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_7R9_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\gisarl01\bps_backup\May_BPS_Delivery\BPS_Delivery\WO_286_CA_Santa_Cruz_County_1956\Without_Collar\1956B_Santa_Cruz_County_Flight_CJA_8R38_Orthorect_nocollar.tif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the model I am trying to create:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the table is not connecting to iterator (I tried other iterators too)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-use-a-text-file-csv-list-as-input-as-well/m-p/507260#M16867</guid>
      <dc:creator>D__SamuelRajasekhar</dc:creator>
      <dc:date>2021-12-11T22:14:18Z</dc:date>
    </item>
  </channel>
</rss>

