<?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: Trying to use jupyter notebooks and arcgis api to access sentinel data in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863638#M4313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at&amp;nbsp;the notebook &lt;A href="https://developers.arcgis.com/python/sample-notebooks/how-much-green-is-delhi-as-on-15-oct-2017/"&gt;here&lt;/A&gt;. There are certain calculations that are performed here similar to what you are looking for. I believe this may help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2020 03:28:18 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-08-25T03:28:18Z</dc:date>
    <item>
      <title>Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863634#M4309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am just getting started with python and the arcgis api and I’m trying to use jupyter notebook to analyse sentinel data for pre and post fire processing assignment. I found some help online but I keep getting stuck calling in the sentinel data and wonder if someone could please help me?&lt;/P&gt;&lt;P&gt;I would like to try filter by the date and intersection. Do I need to obtain a Token for the sentinel dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;from arcgis import GIS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;gis = GIS()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;sentinel_item = gis.content.search('Sentinel-2 Views', outside_org=True)[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;sentinel_item&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;import arcgis&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;sentinel = sentinel_item.layers[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;aoi = {'spatialreference': 'WGS 1984',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'xmax': 15804453,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'xmin': 17113072,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ymax': -3049737,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ymin': -3888071}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;arcgis.env.analysis_extent = aoi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;sentinel.extent = aoi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;import pandas as pd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;from datetime import datetime&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;startdate = pd.to_datetime(input("What is the fire start date "))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;enddate = pd.to_datetime(input("What is the fire end date "))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;selected = sentinel.filter_by(where="acquisitiondate BETWEEN timestamp 'startdate' AND timestamp 'enddate'",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry=arcgis.geometry.filters.intersects(aoi))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;df = selected.query(out_fields='AcquisitionDate, Tile_ID, CloudCover', order_by_fields='AcquisitionDate').df&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #323130;"&gt;df['acquisitiondate'] = pd.to_datetime(df['acquisitiondate'], unit = 'ms')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 13:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863634#M4309</guid>
      <dc:creator>BobClark</dc:creator>
      <dc:date>2020-08-18T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863635#M4310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would require an ArcGIS Online account to use Sentinel 2 Views. I would suggest you use :&amp;nbsp;gis = GIS("https://www.arcgis.com", "arcgis_python", "P@ssword123") as your GIS object. The details of this account is mentioned in the guide &lt;A href="https://developers.arcgis.com/python/guide/using-the-gis/"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;A screenshot is attached to show its working with the gis object mentioned.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/503896_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863635#M4310</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-19T07:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863636#M4311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Guneet!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863636#M4311</guid>
      <dc:creator>BobClark</dc:creator>
      <dc:date>2020-08-20T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863637#M4312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I progressed the code further and was wondering if you could help with an arcgis method to mosaic all the sentinel&amp;nbsp;tiles as my area is large.&amp;nbsp;I'm also stuck on filtering by each day the capture was taken and saving throughout a fire event. I have screenshot where i am up to below.&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp; you so much!!&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/504318_2020-08-24 (2).png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863637#M4312</guid>
      <dc:creator>BobClark</dc:creator>
      <dc:date>2020-08-24T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863638#M4313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at&amp;nbsp;the notebook &lt;A href="https://developers.arcgis.com/python/sample-notebooks/how-much-green-is-delhi-as-on-15-oct-2017/"&gt;here&lt;/A&gt;. There are certain calculations that are performed here similar to what you are looking for. I believe this may help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 03:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863638#M4313</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-25T03:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863639#M4314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, for creating mosaic the API has a mosaic function available. Have a look at this &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.raster.toc.html?highlight=mosaic#arcgis.raster.RasterCollection.mosaic"&gt;link&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 03:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863639#M4314</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-25T03:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use jupyter notebooks and arcgis api to access sentinel data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863640#M4315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Guneet. The links were very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 02:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-use-jupyter-notebooks-and-arcgis-api-to/m-p/863640#M4315</guid>
      <dc:creator>BobClark</dc:creator>
      <dc:date>2020-08-26T02:46:13Z</dc:date>
    </item>
  </channel>
</rss>

