Skip to content

Commit

Permalink
Improve info log for downloading band, remove default value of bands
Browse files Browse the repository at this point in the history
  • Loading branch information
plant99 committed Jul 23, 2020
1 parent b83d5c1 commit 9e79e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions felicette/sat_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def preview_landsat_image(landsat_item):
response = input("Are you sure you want to see an enhanced version of the image at the path shown above? [Y/n]")
return handle_prompt_response(response)

def download_landsat_data(landsat_item, bands=[2, 3, 4, 8]):
def download_landsat_data(landsat_item, bands):

# get paths w.r.t. id
paths = file_paths_wrt_id(landsat_item._data["id"])
Expand All @@ -69,7 +69,7 @@ def download_landsat_data(landsat_item, bands=[2, 3, 4, 8]):
landsat_item.assets["B{}".format(band)]["href"],
band_filename,
landsat_item._data["id"],
"✗ required data doesn't exist, downloading", band_tag_map[band], "band"
"✗ required data doesn't exist, downloading %s %s" % (band_tag_map["b" + str(band)], "band")
)
else:
rprint(
Expand Down

0 comments on commit 9e79e54

Please sign in to comment.