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

Feature Request: Preview Number of Images Available per Satellite for Selected ROI #169

Closed
2320sharon opened this issue Aug 4, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@2320sharon
Copy link
Collaborator

I would like to propose a new feature that would greatly enhance the user experience and provide valuable information at a glance.

Feature Description:

Allow users to preview the number of images available for each satellite they select. This feature should be implemented as a function that returns a set with the satellite name and the number of images available. This action should be allowed per Region of Interest (ROI).

Proposed Flow:

User selects a Region of Interest (ROI) or multiple ROIs.
A widget or similar UI element displays the number of images available for each satellite for the selected ROI(s).
This feature would provide users with a quick overview of the data available for their selected region(s), helping them make more informed decisions about which satellites to use for their analysis.

I believe this feature would be a valuable addition to the platform. Please let me know if there are any questions or if further clarification is needed.

@2320sharon 2320sharon added the enhancement New feature or request label Aug 4, 2023
@2320sharon 2320sharon self-assigned this Aug 4, 2023
@dbuscombe-usgs
Copy link
Member

Excellent idea. This would greatly help those who find downloading long time-series of imagery problematic, breaking the download into smaller more manageable chunks

@2320sharon
Copy link
Collaborator Author

Using Canva I made a mockup of what the preview would look like

  1. The user would hover over an ROI, then under ROI hover widget they would click go to see all the images available for that ROI ID
  • If the user for some reason couldn't hover over an ROI they can enter an ROI ID and get the images available that way

Initial State

image

After Go Clicked

image

What happens if the ROI ID they entered did not exist

image

@dbuscombe-usgs
Copy link
Member

Amazing!

@2320sharon
Copy link
Collaborator Author

Okay so it turns out the idea of having this widget on the map was rather ambitious. I thought it was a simple idea until I realized how many components would have to communicate to have this idea work. I was able to get a version working where when the user hovered over an ROI then clicked "get available images" it would show the images available, but the ROI's ID that was currently being hovered over wouldn't show. Additionally it takes a 2-3 seconds to the get the images available, so I can't just run this operation each time the user hovers over a new ROI.

I know we have a lot of features we want to build into coastseg so I'm hesitant to spend too much time on this feature. @dbuscombe-usgs let me know what you think of this idea instead:

I think the best approach for now, would be to create a standalone button called 'preview available images', located near the download images button, shows a scrollable list that shows the images available for each ROI the user clicked. The output would look something like this.

ROI ID: abc123
L5 :  5 images
L7 :  5 images
L8 :  5 images
L9 :  5 images
S2 :  5 images

ROI ID: abc456
L5 :  7 images
L7 :  8 images
L8 :  5 images
L9 :  80 images
S2 :  5 images

@dbuscombe-usgs
Copy link
Member

A preview listing the available imagery located next to the download button would, to my mind, be the perfect solution. The purpose of this is to give the user more info about whether or not they'd like to go ahead and push that download button, so your solution works perfectly fpr that.

I agree that there are other more pressing issues to work on, so I agree that this should only be implemented now if it involves minimal code refactoring

@2320sharon
Copy link
Collaborator Author

I'll attempt to implement this idea. I believe I have almost all of the code necessary to create this widget. If I can't get it done by today I'll put my progress in a branch and move on with other tasks.

@2320sharon
Copy link
Collaborator Author

image
Alright I've got this working. I'll be release a development version of coastseg that includes this feature. This was FAR easier to implement and honestly I think its better.

@2320sharon
Copy link
Collaborator Author

This feature has been implemented in 0.0.73dev3

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

No branches or pull requests

2 participants