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

feat: flood detection algorithm #103

Merged
merged 6 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY src/cogserver cogserver

ENV HOST=0.0.0.0
ENV PORT=8000
ENV LOG_LEVEL=debug
ENV LOG_LEVEL=info
ENV RELOAD=--reload
ENV WORKERS=1
ENV THREADS=1
Expand Down
2 changes: 1 addition & 1 deletion src/cogserver/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
algorithms: Algorithms = default_algorithms.register(
{
"rca": RapidChangeAssessment,
"flooding": DetectFlood,
"flood_detection": DetectFlood,
}
)
5 changes: 3 additions & 2 deletions src/cogserver/algorithms/flood_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ class DetectFlood(BaseAlgorithm):
input_bands: List = [
{'title': 'Green band', 'description': 'The green band with the wavelength between 0.53µm - 0.59µm',
'required': True,
'keywords': ['Green band']},
'keywords': ['green', 'b3']},
{'title': 'Short wave infrared band', 'description': 'The SWIR band with wavelength between 0.9μ – 1.7μm',
'required': True,
'keywords': ['Shortwave infrared band']},
'keywords': ['swir', 'b6']},
]
input_description: str = "The bands that will be used to make this calculation"
output_description: str = "The output is a binary image where 1 represents water and 0 represents non-water"
Thuhaa marked this conversation as resolved.
Show resolved Hide resolved

# Metadata
input_nbands: int = 2
Expand Down