IndigoWizard / NDVI-Viewer

Monitor Vegetation Health by Viewing & Comparing NDVI Values & Satellite Images On The Fly!
https://ndvi-viewer.streamlit.app/
16 stars 6 forks source link

Fix date input based calculation #30

Closed IndigoWizard closed 11 months ago

IndigoWizard commented 11 months ago

REMAINDER! Please make your PRs to the develop branch, not streamlit-app branch.

Main PR gist

Fixes the date input placeholder that causes absent B8 band while calculating normalized difference with current day dataset that may not include any images.

Issue ticket

Type of change

Check relevant options and delete options not relevant to this PR:

Changes description

Now the app on start displays a time placeholder with two days delay from the current date in the date input widgets, this ensures that the app don't start fetching an image collection from the current date where the satellite may have not captured any images or the images aren't ingested or added to the dataset yet to avoid running calculations on absent image bands (e. g; absent B8 when calculating normalized difference)

Checklist

NOTE: Please delete any section or elements of the PR template that you do not need in your PR submission (including this very note) while maintaining the structure of the template.>