This repository contains a GUI software designed to identify instances where a Satellite-Derived Waterline (SDW) is unable to accurately detect the land-water interface, whether partially or fully. The main objective is to label, within a preestablished options (see Figure 1), which indicator the SDW is actually detecting. To do so, the present GUI facilitates the visualization of each SDW with its satellite image smoothly. Finally, the results are saved as a CSV file for further analysis.
1. Install dependencies...
a) by creating new Anaconda environment:
conda env create --file environment.yml
conda activate flag_sdw_gui
b) directly from the requirements.txt file:
pip install -r requirements.txt
2. Run the main.py script located in the build subfolder
python main.py
The application is divided into 3 window frames, which are described below:
- The user is asked whether to start a new project. If "No" button is clicked, the user is prompted to enter a TXT file ("input_files/input_info.txt") which is created in the next window and is stored in the output folder.
- Initialize a project by passing input data. When "START" button is clicked, the output folder (with the format "output_folder_" + current datetime) is created in the build subfolder with a text file where the previous input is saved. In addition, the output CSV file where the results are collected is saved as "flag_sdw_output.csv".
Warning
- RGB TIF file names must be stored in the
YYYY-MM-DD-sensor
format, e.g.: "2021-10-28-S2.tif". - Make sure that the Feature Class names you pass are actually in the File GDB.
- The metocean time series file must have, at least, a column named
date
in ISO format;hs
expressing the significant wave height in meters; andtide
expressing the astronomical tide in meters.
- First, the user selects a SDW from the "Select a SDW" drop-down menu and clicks the "PLOT" button to display the SDW and metocean data and visualize a map with the satellite image and SDW in the browser. The user then selects the transects in which the SDW does not represent the water-land interface, specifying it by selecting a predefined option and expressing the confidence level of the attribution. Before moving on to the next SDW, the user clicks the "SAVE SDW" button where the results are exported to the flag_sdw_output.csv.
For code-development issues contact 👨💻Albert Gallego.