<?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: Can I use the map object's addDataFromPath method to add data from a grib file? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-use-the-map-object-s-adddatafrompath-method/m-p/1085328#M43990</link>
    <description>&lt;P&gt;Hi Jeff. I'm experiencing the same thing but when trying to add a feature class in the 'memory' workspace. Still no joy.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 14:29:04 GMT</pubDate>
    <dc:creator>MattHowe</dc:creator>
    <dc:date>2021-08-03T14:29:04Z</dc:date>
    <item>
      <title>Can I use the map object's addDataFromPath method to add data from a grib file?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-use-the-map-object-s-adddatafrompath-method/m-p/530103#M23334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried, but get a RuntimeError.&amp;nbsp;&amp;nbsp; Specifically, I am trying this in the python window of ArcGIS pro:&lt;/P&gt;&lt;P&gt;current_project = arcpy.mp.ArcGISProject('CURRENT')&lt;/P&gt;&lt;P&gt;map = current_project.listMaps()[0]&lt;/P&gt;&lt;P&gt;map.addDataFromPath(r'c:\Users\jhancock\Documents\datagrib\epochCal\20191105\EPOCH.2019-11-05T12_00_00.PT03_00.grb2')&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives me a RuntimeError.&amp;nbsp; But if I use that same path in the GUI (Map -&amp;gt; Add Data -&amp;gt; Data From Path), it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the python method addDataFromPath not the same thing?&amp;nbsp; Should it work?&amp;nbsp; I've been semi-successful at adding a grib file to a map from the python window using arcpy.MakeRasterLayer_management, but that way seems to lose the time information, which I get if I just drag and drop the file into ArcGIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2019 19:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-use-the-map-object-s-adddatafrompath-method/m-p/530103#M23334</guid>
      <dc:creator>JeffHancock</dc:creator>
      <dc:date>2019-12-30T19:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the map object's addDataFromPath method to add data from a grib file?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-use-the-map-object-s-adddatafrompath-method/m-p/1085328#M43990</link>
      <description>&lt;P&gt;Hi Jeff. I'm experiencing the same thing but when trying to add a feature class in the 'memory' workspace. Still no joy.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-use-the-map-object-s-adddatafrompath-method/m-p/1085328#M43990</guid>
      <dc:creator>MattHowe</dc:creator>
      <dc:date>2021-08-03T14:29:04Z</dc:date>
    </item>
  </channel>
</rss>

