<?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: Is it possible to extract information from a raster file name? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446626#M15064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see above, I was updating the thread as you posted...sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 20:56:49 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-07-31T20:56:49Z</dc:date>
    <item>
      <title>Is it possible to extract information from a raster file name?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446623#M15061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have relevant information in my file name and I've already extracted the information I need from the raster itself&amp;nbsp; but I also need information that's in the &lt;STRONG&gt;file name&lt;/STRONG&gt;. I know it may sound strange, but that's what I'm wondering if it is possible.&lt;/P&gt;&lt;P&gt;For example, if my file name is blahblahJune2010.tif.......is it possible to extract June2010?&lt;/P&gt;&lt;P&gt;Any suggestions welcome.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446623#M15061</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2014-07-31T20:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to extract information from a raster file name?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446624#M15062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if blahblah and *.tif were consistent, then you could easily parse that data off using python etc.&amp;nbsp; If this is a one-off event, and the number of files is relatively small, then spending time programming a solution wouldn't be worth the effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum&lt;/P&gt;&lt;P&gt;You might want to use the convention of creating filenames that may contain pertinent information so that they can be parsed...for example&lt;/P&gt;&lt;P&gt;blahblah_June2014.tif (python example in verbose form and totally untested since I haven't got python on this friggin' iPad toy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; a = "blahblah_June2014.tif"&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; b = a.replace(".tif", "")&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; c = b.split("_")[-1]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446624#M15062</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-07-31T20:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to extract information from a raster file name?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446625#M15063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan,&lt;/P&gt;&lt;P&gt;What do you mean by consistent?&lt;/P&gt;&lt;P&gt;And yes, I don't have the time to create any kind of code to do this.....mostly because I don't know how to write code. So I was hoping that there's some kind of tool I could pull into ModelBuilder to perform this operation.&lt;/P&gt;&lt;P&gt;Any other suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446625#M15063</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2014-07-31T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to extract information from a raster file name?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446626#M15064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see above, I was updating the thread as you posted...sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446626#M15064</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-07-31T20:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to extract information from a raster file name?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446627#M15065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! I found some info on the help guide regarding "parse path" on Model Builder.&lt;/P&gt;&lt;P&gt;I'll look into this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 21:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/is-it-possible-to-extract-information-from-a/m-p/446627#M15065</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2014-07-31T21:10:03Z</dc:date>
    </item>
  </channel>
</rss>

