<?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 OD cost matrix (arcpy) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/od-cost-matrix-arcpy/m-p/738260#M24317</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;I have created a python script that runs an OD cost matrix over five years, from 1999 to 2004. I have set up an OD cost matrix for each year, which I think is very cumbersome. Is there someone who can show me how I do this with a loop in python (arcpy) instead of setting up the OD cost matrix for each year. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my orgins and Destinations I also have a field called HOSPITALS. In the OD cost matrix, this field should be connected to each other so there will only be an analysis of each orgins to Destination.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How is this done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 May 2013 11:10:56 GMT</pubDate>
    <dc:creator>Tom_AndersEngebakken</dc:creator>
    <dc:date>2013-05-28T11:10:56Z</dc:date>
    <item>
      <title>OD cost matrix (arcpy)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/od-cost-matrix-arcpy/m-p/738260#M24317</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;I have created a python script that runs an OD cost matrix over five years, from 1999 to 2004. I have set up an OD cost matrix for each year, which I think is very cumbersome. Is there someone who can show me how I do this with a loop in python (arcpy) instead of setting up the OD cost matrix for each year. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my orgins and Destinations I also have a field called HOSPITALS. In the OD cost matrix, this field should be connected to each other so there will only be an analysis of each orgins to Destination.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How is this done?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 11:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/od-cost-matrix-arcpy/m-p/738260#M24317</guid>
      <dc:creator>Tom_AndersEngebakken</dc:creator>
      <dc:date>2013-05-28T11:10:56Z</dc:date>
    </item>
  </channel>
</rss>

