Skip to content

Commit

Permalink
Update DSCOVR.py
Browse files Browse the repository at this point in the history
Updated photo url format
  • Loading branch information
DavidMarzocca authored Jan 8, 2024
1 parent 4bbcf6d commit 256fc92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DSCOVR.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def write_on_log(filename, line):

# Download the photo and save it in the download directory
timestamp = closest_photo_str[16:30]
photo_url = f'http://epic.gsfc.nasa.gov/epic-archive/png/epic_1b_{timestamp}.png'
# 08/01/24 update: this is the new photo address form:
photo_url = f'https://epic.gsfc.nasa.gov/archive/natural/{timestamp[0:4]}/{timestamp[4:6]}/{timestamp[6:8]}/png/epic_1b_{timestamp}.png'


#photo_filename = os.path.join(download_dir, os.path.basename(photo_url))
photo_filename = os.path.join(download_dir, 'DSCOVR.png')
Expand Down

0 comments on commit 256fc92

Please sign in to comment.