<?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 Getting data with python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359036#M28334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to write a python program, in which python searches for files on an external harddrive. I can get python to tell me whether the files exist, but not to retrieve them. I'm rookie with python so I hope somebody can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The files the program has to retrieve are raster datasets and are used in a model builder program then. The complete modelbuilder program works, the python part does not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope somebody will be able to help me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorien Janssen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 08:28:35 GMT</pubDate>
    <dc:creator>DorienJanssen</dc:creator>
    <dc:date>2014-04-07T08:28:35Z</dc:date>
    <item>
      <title>Getting data with python</title>
      <link>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359036#M28334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to write a python program, in which python searches for files on an external harddrive. I can get python to tell me whether the files exist, but not to retrieve them. I'm rookie with python so I hope somebody can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The files the program has to retrieve are raster datasets and are used in a model builder program then. The complete modelbuilder program works, the python part does not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope somebody will be able to help me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorien Janssen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 08:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359036#M28334</guid>
      <dc:creator>DorienJanssen</dc:creator>
      <dc:date>2014-04-07T08:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data with python</title>
      <link>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359037#M28335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

#specify the workspace rasters are located in
ws = "H:\Documents\ArcGIS\Default.gdb"
arcpy.env.workspace = ws

#for each Raster in the workspace, do something
rasters = arcpy.ListRasters()
for r in rasters:
&amp;nbsp; desc = arcpy.Describe(r)
&amp;nbsp; rastername = desc.Name
&amp;nbsp; print "Raster Name: %s" % (rastername)

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359037#M28335</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T16:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data with python</title>
      <link>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359038#M28336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you hoping to copy the data from your removable drive to your local HDD? if so, then you should use the shutil module&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import shutil
sourcefile = r'E:\path\to\file\example.ext'
destinationfile = r'C:\path\to\where\File\gets\copied\copy_example.ext'
shutil.copy(sourcefile, destinationfile)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-data-with-python/m-p/359038#M28336</guid>
      <dc:creator>PatrickJurgens</dc:creator>
      <dc:date>2021-12-11T16:46:02Z</dc:date>
    </item>
  </channel>
</rss>

