-
Notifications
You must be signed in to change notification settings - Fork 82
Feature/added feature image opening #27
base: develop
Are you sure you want to change the base?
Feature/added feature image opening #27
Conversation
@@ -1,5 +1,5 @@ | |||
*.pyc | |||
|
|||
**/.vscode/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't a single *
suffice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change this .
@@ -12,6 +12,7 @@ | |||
from felicette.utils.sys_utils import exit_cli, remove_dir | |||
from felicette.sat_processor import process_landsat_data | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For all formatting errors, like 'newline', 'deleted lines', is black used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I have not used black but certainly will use it improve the code formatting. Thank for feedback.
@@ -24,6 +24,21 @@ def handle_prompt_response(response): | |||
exit_cli(rprint, "[red]Sorry, invalid response. Exiting :([/red]") | |||
|
|||
|
|||
def handle_img_prompt_response(response_show_image,paths,key,message): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this function is redundant, because then we are asking twice if the user wants to go ahead with the download.
felicette/felicette/sat_downloader.py
Line 63 in df507be
"Are you sure you want to see an enhanced version of the image at the path shown above? [Y/n]" |
@@ -37,6 +52,7 @@ def search_landsat_data(coordinates, cloud_cover_lt): | |||
# improvement: filter by date, cloud cover here | |||
|
|||
search_items = search.items() | |||
print("Date at which picture was taken : " + str(search_items[0].date)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we save this to a .metadata
file? Not just the date but if you try and print
felicette/felicette/sat_downloader.py
Line 43 in df507be
return landsat_item |
you'll see cloud cover, radiance and other factors. Please explore and suggest how the '.metadata' file will be for an image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will do that.
@@ -58,6 +74,12 @@ def preview_landsat_image(landsat_item): | |||
# print success info | |||
rprint("[blue]Preview image saved at:[/blue]") | |||
print(paths["preview"]) | |||
logging.info("preview imagery !!!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to comment on handle_img_prompt_response
.
Added features :