Skip to content

Commit

Permalink
Merge pull request #20 from oceanhackweek/adelle/more-updates
Browse files Browse the repository at this point in the history
Adelle/more updates
  • Loading branch information
Adelle-Pitsas authored Aug 30, 2024
2 parents 4a4f635 + 50ce1f4 commit 8551432
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 12 deletions.
10 changes: 5 additions & 5 deletions app/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,28 +181,28 @@ def plot_3d_graph(wavelengths, y_indices, rrs_values):

# create columns for hyperspectral plot for comparison between bloom and non-bloom days
st.markdown("<h1 style='text-align: center;'>Bloom vs. No Bloom</h1>", unsafe_allow_html=True)
image_spectra = Image.open('images/spectra_range.png')
image_spectra = Image.open('app/images/spectra_range.png')
st.image(image_spectra, use_column_width=True)
col1a, col1b = st.columns([15, 15])

with col1a:
st.markdown("<h5 style='text-align: center;'>Algal Bloom: August 16th, 2024</h5>", unsafe_allow_html=True)

st.markdown("<h6 style='text-align: center;'>Hyperspectral Data</h6>", unsafe_allow_html=True)
image_bloom = Image.open('images/bloom.png')
image_bloom = Image.open('app/images/bloom.png')
st.image(image_bloom, use_column_width=True)
st.markdown("<h6 style='text-align: center;'>Chlorophyl Data</h6>", unsafe_allow_html=True)
image_chl_bloom = Image.open('images/chl_bloom.png')
image_chl_bloom = Image.open('app/images/chl_bloom.png')
st.image(image_chl_bloom, use_column_width=True)

with col1b:
st.markdown("<h5 style='text-align: center;'>Non Algal Bloom: July 19th, 2024</h5>", unsafe_allow_html=True)

st.markdown("<h6 style='text-align: center;'>Hyperspectral Data</h6>", unsafe_allow_html=True)
image_nobloom = Image.open('images/nobloom.png')
image_nobloom = Image.open('app/images/nobloom.png')
st.image(image_nobloom, use_column_width=True)
st.markdown("<h6 style='text-align: center;'>Chlorophyl Data</h6>", unsafe_allow_html=True)
image_chl_nobloom = Image.open('images/chl_nobloom.png')
image_chl_nobloom = Image.open('app/images/chl_nobloom.png')
st.image(image_chl_nobloom, use_column_width=True)

# commenting out code that runs chlorophyll plot to use screenshots instead for sake of time left on project
Expand Down
Binary file added app/images/Genus-dist-spectra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/Genus-distribution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/groupAll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/pages/1_Comparing_PACE_and_Sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import datetime

st.title("Comparing PACE and Sentinel Data")
st.subheader("description goes here")
st.subheader("Contributing members: Ian and Rafael")
st.markdown("<h4>description goes here</h4>", unsafe_allow_html=True)
st.markdown("<h4>Contributing members: Ian and Rafael</h4>", unsafe_allow_html=True)
st.write('---')

# screenshot of 0-1 visualized and explanations
Expand Down
20 changes: 16 additions & 4 deletions app/pages/2_Genus_Distribution_Validation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import streamlit as st
import datetime
from PIL import Image


st.title("Genus Distribution Validation")
st.subheader("description goes here")
st.subheader("Contributing members: Gulce")
st.markdown("<h4>Long Island Case Study: Plotting surface reflectance for a region off Long Island that we know has a long-running census of plankton genus. We display the spectra over a month, pick out an anomaly, and then gather and plot the corresponding plankton distribution.</h4>", unsafe_allow_html=True)
st.markdown("<h4>Contributing members: Gulce</h4>", unsafe_allow_html=True)
st.write('---')


Expand All @@ -12,9 +14,19 @@
st.write("----")
select_dates = st.date_input(
"Select a date to compare",
value = datetime.date(2024, 7, 1),
value = datetime.date(2024, 7, 7),
min_value = datetime.date(2024, 7, 1),
max_value = datetime.date(2024, 8, 25),
format = "YYYY-MM-DD",
label_visibility = "visible"
)
)

col1, col2 = st.columns([30, 30])

st.markdown("<h5 style='text-align: center;'>Genus distribution for July 7th, 2024</h5>", unsafe_allow_html=True)
image_genus_dist = Image.open("app/images/Genus-distribution.png")
st.image(image_genus_dist, use_column_width=True)

st.markdown("<h5 style='text-align: center;'>Hyperspectral Data for July 7th, 2024</h5>", unsafe_allow_html=True)
image_genus_dist = Image.open("app/images/Genus-dist-spectra.png")
st.image(image_genus_dist, use_column_width=True)
2 changes: 1 addition & 1 deletion app/pages/3_Contributing_Members.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
- Eli Holmes
""")

image = Image.open('images/file.png')
image = Image.open('app/images/groupAll.png')
st.image(image)
1 change: 1 addition & 0 deletions app/pages/4_Additional_Resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import time
import numpy as np


st.set_page_config(page_title="Additional Resources", page_icon=":books:")

st.markdown("# Additional Resources")
Expand Down

0 comments on commit 8551432

Please sign in to comment.