question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(env) ➜  usgs-test landsatxplore search --dataset landsat_ot_c2_l2 --location 31.9378 -109.0803  --start 2021-09-01 --end 2022-02-02
LC08_L2SP_035038_20220120_20220127_02_T1
LC08_L2SP_034038_20220113_20220123_02_T1
LC08_L2SP_035038_20220104_20220113_02_T1
LC08_L2SP_034038_20211228_20220105_02_T1
LC08_L2SP_035038_20211219_20211223_02_T1
LC08_L2SP_034038_20211212_20211222_02_T1
LC08_L2SP_035038_20211203_20211209_02_T1
LC08_L2SP_034038_20211126_20211201_02_T1
LC08_L2SP_035038_20211117_20211125_02_T1
LC08_L2SP_034038_20211110_20211117_02_T1
LC08_L2SP_035038_20211101_20211109_02_T1
LC08_L2SP_034038_20211025_20211103_02_T1
LC08_L2SP_035038_20211016_20211026_02_T1
LC08_L2SP_034038_20211009_20211019_02_T1
LC08_L2SP_035038_20210930_20211013_02_T1
LC08_L2SP_035038_20210914_20210924_02_T1
LC08_L2SP_034038_20210907_20210916_02_T1
(env) ➜  usgs-test landsatxplore download LC08_L2SP_035038_20210914_20210924_02_T1                                                 
Traceback (most recent call last):
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/bin/landsatxplore", line 10, in <module>
    sys.exit(cli())
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/landsatxplore/cli.py", line 165, in download
    scene, output_dir, dataset=dataset, timeout=timeout, skip=skip
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/landsatxplore/earthexplorer.py", line 150, in download
    filename = self._download(url, output_dir, timeout=timeout, skip=skip)
  File "/Users/henrykironde/Documents/GitHub/python-virtual-environments/env/lib/python3.7/site-packages/landsatxplore/earthexplorer.py", line 92, in _download
    raise EarthExplorerError(error_msg)
landsatxplore.errors.EarthExplorerError: Download is not available

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
HanDuwolcommented, Feb 25, 2022

I think I solved it! I modified the next code for earthexplorer.py!

# IDs of GeoTIFF data product for each dataset
DATA_PRODUCTS = {
    "landsat_tm_c1": "5e83d08fd9932768",
    "landsat_etm_c1": "5e83a507d6aaa3db",
    "landsat_8_c1": "5e83d0b84df8d8c2",
    "landsat_tm_c2_l1": "5e83d0a0f94d7d8d",
    "landsat_etm_c2_l1": "5e83d0d0d2aaa488",
    # "landsat_ot_c2_l1": "5e81f14ff4f9941c",
    "landsat_ot_c2_l1": "5e81f14f92acf9ef",
    "landsat_tm_c2_l2": "5e83d11933473426",
    "landsat_etm_c2_l2": "5e83d12aada2e3c5",
    "landsat_ot_c2_l2": "5e83d14f30ea90a9",
    
    
    "sentinel_2a": "5e83a42c6eba8084",
}

USGS’s earthhexplorer, web developer, analyzed the network with tools to find a difference!

5e81f14ff4f9941c-> 5e81f14f92acf9ef

0reactions
lukecarberrycommented, Apr 18, 2022

@HanDuwol Could you explain what you mean? Or provide an example? I don’t know how to do what you’re saying here. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix file download errors - Google Chrome Help
To fix the error: Cancel the download and try again. Instead of clicking the file to download, right-click the link and select Save...
Read more >
6 Ways to Fix the “Download Failed Network Error” on Chrome
6 Ways to Fix the “Download Failed Network Error” on Chrome · 1. Check Your Internet Speed and Connection · 2. Modify Your...
Read more >
How to Fix “Download Failed: Network Error” on Chrome
How to Fix “Download Failed: Network Error” on Chrome · Check Your Internet Connection · Change Download Location · Use Incognito Mode ·...
Read more >
How to Fix 'Failed - Network Error' When Downloading on ...
The “Download Failed: Network Error” appears when users are trying to download something using the Google Chrome browser.
Read more >
How To Fix “Download Failed Network Error” On Google ...
Chrome shows the error as Download Failed Network Error if something goes wrong while downloading. There are several reasons why you encounter ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found