<?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 load a directory of rasters into a geodatabase using Python? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259361#M12744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python 2.7 and 3.5 on the iThing&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; a
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'bluefin.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'char.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'clams.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'cod.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dungenes.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fish.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'grayling.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'halibut.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'herring.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'octopus1.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'salmon-chum.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'salmon-sockeye.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'skipjack.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'sole.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'squid2.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'trout-lake.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'trout-rainbow.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;";"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; a&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'bluefin.JPG;char.JPG;clams.JPG;cod.JPG;dungenes.JPG;fish.JPG;grayling.JPG;halibut.JPG;herring.JPG;octopus1.JPG;salmon-chum.JPG;salmon-sockeye.JPG;skipjack.JPG;sole.JPG;squid2.JPG;trout-lake.JPG;trout-rainbow.JPG'&lt;/SPAN&gt;
‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The single or double quotes don't matter nor does the unicode prefix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:46:03 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-11T12:46:03Z</dc:date>
    <item>
      <title>How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259354#M12737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use Python in ArcGIS 10.4 to load a directory of JP2 images into a raster catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can load individual files but can figure out how to load all of the file at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will load individual files ....&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; from arcpy import env&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; env.workspace = "d:/data"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/SPAN&gt;arcpy.RasterToGeodatabase_conversion("Image1.jp2;Image2.jp2","d:/data/Database.gdb/Orthos")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating a list of the rasters with&amp;nbsp;&lt;SPAN class="" style="color: #4d4d4d;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;ListRasters and replace the Input_Rasters with the list name and this works if there is only one item in the list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d;"&gt;Txs.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 00:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259354#M12737</guid>
      <dc:creator>DaveBranson</dc:creator>
      <dc:date>2016-11-16T00:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to I load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259355#M12738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May not be the issue, but your example has an error:&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Image2,jp2 should have a period, not comma.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 00:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259355#M12738</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-11-16T00:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to I load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259356#M12739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, you may want to try it without the "/Orthos"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was able to do multiple into the "root" of a .fgdb, but not into a feature dataset. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 01:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259356#M12739</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-11-16T01:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259357#M12740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should clarify that the above &lt;STRONG&gt;does work&lt;/STRONG&gt; for loading individual files. &amp;nbsp;How do you specify a wildcard for Raster_Input to read the entire directory? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have unsuccessfully tried variations on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;arcpy.RasterToGeodatabase_conversion("d:/data/*.jp2","d:/data/Database.gdb/Orthos")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 02:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259357#M12740</guid>
      <dc:creator>DaveBranson</dc:creator>
      <dc:date>2016-11-16T02:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259358#M12741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you setting the results of the ListRasters to a variable, and if so, have you printed it to make sure it is in the correct format?&amp;nbsp; Maybe the list is blank and/or formatted incorrectly for input into the RasterToGeodatabase command.&amp;nbsp; I don't have a good folder of .jpg rasters to test against right now (looking though), but that would be the next thing I checked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 02:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259358#M12741</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-11-16T02:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259359#M12742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the tool from arctoolbox, once using some representative data, go to the Geoprocessing Results window, expand the tool output&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-results-window.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-results-window.htm"&gt;Using the Results window—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have a look and you can even export to a python snippet. &amp;nbsp;I get worried, when it says a 'list' is required, sometimes that is a semi-colon delimited string and not python list... both are ok, but they are not the same type of object. &amp;nbsp;Once you know what is expected, check to see what ListRasters with an appropriate wildcard selected returns,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 02:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259359#M12742</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-11-16T02:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259360#M12743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, this is something you could probably format in a couple seconds.&amp;nbsp; I've tested this on a folder with a bunch of .jpg and the output is a list in the incorrect format...you are much faster at conversion than I am.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"d:\data"&lt;/SPAN&gt;
myList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListRasters&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"jpg"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;myList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

OutGDB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:/_scratch/test.gdb/blah"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#arcpy.RasterToGeodatabase_conversion(myList, OutGDB)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;as a sample with my data...&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;print(myList)&amp;nbsp; # gives me&lt;/P&gt;&lt;P&gt;[u'bluefin.JPG', u'char.JPG', u'clams.JPG', u'cod.JPG', u'dungenes.JPG', u'fish.JPG', u'grayling.JPG', u'halibut.JPG', u'herring.JPG', u'octopus1.JPG', u'salmon-chum.JPG', u'salmon-sockeye.JPG', u'skipjack.JPG', u'sole.JPG', u'squid2.JPG', u'trout-lake.JPG', u'trout-rainbow.JPG']&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay would need"&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"bluefin.jpg; char.jpg; clams.jpg; ....."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no "u" , [] or single quotes....separated by semi-colon...and enclused with double quotes.&amp;nbsp;&amp;nbsp; I'm not sure if full path to the data is also needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259360#M12743</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-11T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259361#M12744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python 2.7 and 3.5 on the iThing&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; a
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'bluefin.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'char.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'clams.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'cod.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dungenes.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fish.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'grayling.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'halibut.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'herring.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'octopus1.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'salmon-chum.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'salmon-sockeye.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'skipjack.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'sole.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'squid2.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'trout-lake.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'trout-rainbow.JPG'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;";"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; a&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'bluefin.JPG;char.JPG;clams.JPG;cod.JPG;dungenes.JPG;fish.JPG;grayling.JPG;halibut.JPG;herring.JPG;octopus1.JPG;salmon-chum.JPG;salmon-sockeye.JPG;skipjack.JPG;sole.JPG;squid2.JPG;trout-lake.JPG;trout-rainbow.JPG'&lt;/SPAN&gt;
‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The single or double quotes don't matter nor does the unicode prefix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259361#M12744</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T12:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259362#M12745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave, I still have the issue that is doesn't like me to have a feature dataset name after the .gdb for the output, but otherwise, I got this to read all the .jpg files in a folder, and then add them to my fgdb.&amp;nbsp; I'm not sure if all the formatting and/or the full path to the .jpgs was necessary or not, but other than the output file going to the root of the fgdb, this works for me (maybe a bug for me?&amp;nbsp; ArcCatalog 10.3.1)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
sourceDir &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"d:\data"&lt;/SPAN&gt;
myList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListRasters&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"jpg"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;myList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#OutGDB = r"C:/_scratch/test.gdb/blah"&lt;/SPAN&gt;
OutGDB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:/_scratch/test.gdb"&lt;/SPAN&gt;

newList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; x &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; myList&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;z &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sourceDir&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;newList&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;z&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
inList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;";"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; newList&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RasterToGeodatabase_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inList&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; OutGDB&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259362#M12745</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-11T12:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259363#M12746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think all this should be in the Python area...&lt;/P&gt;&lt;P&gt;The first question is why do you want to put your images "in" the FGDB. It just make them bigger.&lt;/P&gt;&lt;P&gt;I think you want to build a Mosaic Dataset inside the FGDB that point to the rasters on disk and look like one raster in ArcMap.&lt;/P&gt;&lt;P&gt;Check this:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/what-is-a-mosaic-dataset.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/what-is-a-mosaic-dataset.htm"&gt;What is a mosaic dataset?—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259363#M12746</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2016-11-16T05:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259364#M12747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, that is a better option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 06:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259364#M12747</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-11-16T06:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259365#M12748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely. The current esri "Pattern" is to leave rasters in whatever format you got them in. Then create a mosaic dataset referencing the original images.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 07:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259365#M12748</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-16T07:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a directory of rasters into a geodatabase using Python?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259366#M12749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rebecca! &amp;nbsp;That solved the problem. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ListRasters output did not include the path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 13:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-load-a-directory-of-rasters-into-a/m-p/259366#M12749</guid>
      <dc:creator>DaveBranson</dc:creator>
      <dc:date>2016-11-16T13:27:23Z</dc:date>
    </item>
  </channel>
</rss>

