Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landsat 5 not downloading #44

Open
jkariscodes opened this issue Aug 2, 2017 · 3 comments
Open

Landsat 5 not downloading #44

jkariscodes opened this issue Aug 2, 2017 · 3 comments

Comments

@jkariscodes
Copy link

jkariscodes commented Aug 2, 2017

This script is super cool beacuse it saves time in downloading data and has selective attributes put into consideration. however, I am trying to download Landsat5 data and it is just iterating through the archive with no result. Below is the command

python download_landsat_scene.py -o scene -b LT5 -d 20000101 -f 20001231 -c 50 -s 169060 -u usgs.txt --output ~/Documents/GIS/

@theopauw
Copy link

theopauw commented May 9, 2018

In download_landsat_scene.py, change the 'repert' to 12266 for 'LT5' (for scene, liste and catalog) and add 'JSA' to stations (for scene and liste), e.g.:

if produit.startswith('LT5'):
repert='12266'
#repert='3119'
stations=['GLC','ASA','KIR','MOR','KHC', 'PAC', 'KIS', 'CHM', 'LGS', 'MGR', 'COA', 'MPS', 'JSA']

In above, Github is removing my tabs. Keep them as is in the script else it will break. I am bit new to Git, will try to make a pull request shortly to update the code.

There might be more stations that should be added, this was the first one I found when downloading off EarthExplorer.

If this happens again, turn on the Web Console in your browser. Go to EarthExplorer and log in. Find the image you are looking for and check the URL in the Console when you actually click Download. See my Firefox screenshot below.

@theopauw
Copy link

theopauw commented May 9, 2018

capture

@olivierhagolle
Copy link
Owner

Thanks @theopauw
I am not downloading much Landsat data these days, that's why I had not updated the code for a long time.
But I have just updated that code to use new directory numbers.

Without changing the code, you might have used this sort of command, passing dir and station via command line.
python download_landsat_scene.py -b LT5 -o scene -d 19990517 -f 19990519 -s 175083 -u usgs.txt --output . --dir=12266 --station JSA

I will use your screen copy in the readme file
Best regards,
Olivier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants