olivierhagolle / LANDSAT-Download

Automated download of LANDSAT data from USGS website
http://olivierhagolle.github.io/LANDSAT-Download
GNU General Public License v3.0
204 stars 97 forks source link

Julian date mistake #46

Closed rp-bluecham closed 6 years ago

rp-bluecham commented 6 years ago

Hello,

I'm having trouble to download some scenes. In some cases, the julian day computed is wrong and the scene is not found.

For example, this request is success:

python ./download_landsat_scene.py -o scene -s 100062 -b LC8 --dir 12864 --station 'LGN' -d 20180321 -u usgs.txt --output ../data

But this one fails:

python ./download_landsat_scene.py -o scene -s 096066 -b LC8 --dir 12864 --station 'LGN' -d 20180321 -u usgs.txt --output ../data

The output is as follow, the julian day computed is 2018084:

LGN 12864
Establishing connection to Earthexplorer without proxy...
Authentification succeded
Searching for images on (julian date): 2018084...
https://earthexplorer.usgs.gov/download/12864/LC80960662018084LGN00/STANDARD/EE
https://earthexplorer.usgs.gov/download/12864/LC80960662018084LGN01/STANDARD/EE
https://earthexplorer.usgs.gov/download/12864/LC80960662018084LGN02/STANDARD/EE

When I compare with USGS website, the juian day should be 2018085.

Have you ever encountered this problem?

rp-bluecham commented 6 years ago

I solved this issue in setting the change date line to an appropriate value.