<?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 &amp;quot;list index out of range&amp;quot; for downloading earth explorer data using python script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1174082#M64559</link>
    <description>&lt;P&gt;Hello Developers and Community Members,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need help with a straightforward task that is not running, I hope there are many solid developers and problem solvers who could help me with the problem.&lt;/P&gt;&lt;P&gt;I am actually trying to download USGS Earth explorer Landsat 8 imagery using python libraries.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the first library I used is "API from landsatxplore.api", but when I enter my login credentials and select the scene properties, it gives this error&amp;nbsp;&lt;PRE&gt;&lt;SPAN class=""&gt;USGSError&lt;/SPAN&gt;: UNAUTHORIZED_USER: Unable to validate user API permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Whereas the code is:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;from landsatxplore.api import API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;api = API("sabafatima1101", "#Geoinformaticionno1")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;scenes = api.search(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dataset='landsat_8_c1',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;latitude=33.68,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;longitude=73.03,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;start_date='2020-8-01',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end_date='2020-10-29',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;max_cloud_cover=10&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the second library I'm using is "EarthExplorer from landsatxplore.earthexplorer", but when I entered my credentials it simply gave an error;&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;IndexError&lt;/SPAN&gt;: list index out of range&lt;/PRE&gt;&lt;P&gt;whereas the code I wrote is;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ee = EarthExplorer("sabafatima1101", "#Geoinformaticionno1")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone who could help me to resolve any error I would be very thankful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 06:52:30 GMT</pubDate>
    <dc:creator>sabafatima</dc:creator>
    <dc:date>2022-05-16T06:52:30Z</dc:date>
    <item>
      <title>"list index out of range" for downloading earth explorer data using python script</title>
      <link>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1174082#M64559</link>
      <description>&lt;P&gt;Hello Developers and Community Members,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need help with a straightforward task that is not running, I hope there are many solid developers and problem solvers who could help me with the problem.&lt;/P&gt;&lt;P&gt;I am actually trying to download USGS Earth explorer Landsat 8 imagery using python libraries.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the first library I used is "API from landsatxplore.api", but when I enter my login credentials and select the scene properties, it gives this error&amp;nbsp;&lt;PRE&gt;&lt;SPAN class=""&gt;USGSError&lt;/SPAN&gt;: UNAUTHORIZED_USER: Unable to validate user API permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Whereas the code is:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;from landsatxplore.api import API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;api = API("sabafatima1101", "#Geoinformaticionno1")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;scenes = api.search(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dataset='landsat_8_c1',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;latitude=33.68,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;longitude=73.03,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;start_date='2020-8-01',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end_date='2020-10-29',&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;max_cloud_cover=10&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the second library I'm using is "EarthExplorer from landsatxplore.earthexplorer", but when I entered my credentials it simply gave an error;&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;IndexError&lt;/SPAN&gt;: list index out of range&lt;/PRE&gt;&lt;P&gt;whereas the code I wrote is;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ee = EarthExplorer("sabafatima1101", "#Geoinformaticionno1")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone who could help me to resolve any error I would be very thankful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1174082#M64559</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2022-05-16T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: "list index out of range" for downloading earth explorer data using python script</title>
      <link>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1174960#M64576</link>
      <description>&lt;P&gt;You can send a request to USGS for access controls. Follow the steps below.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Log on to the USGS website&lt;/LI&gt;&lt;LI&gt;Go to your profile&lt;/LI&gt;&lt;LI&gt;Go to "Access Request"&lt;/LI&gt;&lt;LI&gt;Go to "Request Access"&lt;/LI&gt;&lt;LI&gt;Fill up the form and submit&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It usually takes around a week for the review process, and if things are right, they will give you permission for machine to machine access, which is API calls. This will solve the first error. Not so sure about the second one. I am also facing the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1174960#M64576</guid>
      <dc:creator>VishnuK</dc:creator>
      <dc:date>2022-05-18T07:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: "list index out of range" for downloading earth explorer data using python script</title>
      <link>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1178814#M64680</link>
      <description>&lt;P&gt;Found a fix yet?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 21:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-list-index-out-of-range-quot-for-downloading/m-p/1178814#M64680</guid>
      <dc:creator>Nickk1337</dc:creator>
      <dc:date>2022-05-31T21:45:28Z</dc:date>
    </item>
  </channel>
</rss>

