<?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: Use Sentinel-2A images with Python (ArcPy) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116049#M62960</link>
    <description>&lt;P&gt;I wasn't able to access the layer from arcpy - I'm not sure why. But an alternative is to use the&amp;nbsp; ArcGIS API for python.&amp;nbsp; The code to access your object would look like this ('255af1ceee844d6da8ef8440c8f90d00' is the ArcGIS item ID for the sentinal image layer):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

gis = GIS(url=None, username=&amp;lt;my_id&amp;gt;, password=&amp;lt;my_pw&amp;gt;)
item = gis.content.get('255af1ceee844d6da8ef8440c8f90d00')
record = item.layers[0].query(where="objectid=23156221").to_dict()['features'][0]
print (record)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 16:43:09 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2021-11-11T16:43:09Z</dc:date>
    <item>
      <title>Use Sentinel-2A images with Python (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116040#M62959</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Colleagues&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I need to access Sentinel-2 Level-2A images from Esri's Living Atlas of The World using ArcPy.&lt;BR /&gt;(&lt;A href="https://imagem.maps.arcgis.com/home/item.html?id=255af1ceee844d6da8ef8440c8f90d00" target="_blank" rel="noopener"&gt;https://imagem.maps.arcgis.com/home/item.html?id=255af1ceee844d6da8ef8440c8f90d00&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;If I cannot access the Living Atlas images, what would be another alternative?&lt;/P&gt;&lt;P&gt;The Sentinel-2 image I access needs to be with a certain objectid, example objectid: 23156221.&lt;/P&gt;&lt;P&gt;What should the code in ArcPy (or Python) look like for me to use Sentinel-2 images?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 15:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116040#M62959</guid>
      <dc:creator>Diego_Mendes_Rodrigues</dc:creator>
      <dc:date>2021-11-11T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sentinel-2A images with Python (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116049#M62960</link>
      <description>&lt;P&gt;I wasn't able to access the layer from arcpy - I'm not sure why. But an alternative is to use the&amp;nbsp; ArcGIS API for python.&amp;nbsp; The code to access your object would look like this ('255af1ceee844d6da8ef8440c8f90d00' is the ArcGIS item ID for the sentinal image layer):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

gis = GIS(url=None, username=&amp;lt;my_id&amp;gt;, password=&amp;lt;my_pw&amp;gt;)
item = gis.content.get('255af1ceee844d6da8ef8440c8f90d00')
record = item.layers[0].query(where="objectid=23156221").to_dict()['features'][0]
print (record)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 16:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116049#M62960</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2021-11-11T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sentinel-2A images with Python (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116256#M62968</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;How can I download this service's image using Python?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 10:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-sentinel-2a-images-with-python-arcpy/m-p/1116256#M62968</guid>
      <dc:creator>Diego_Mendes_Rodrigues</dc:creator>
      <dc:date>2021-11-12T10:17:39Z</dc:date>
    </item>
  </channel>
</rss>

