This repository contains code for bottom detection in the CRIMAC project.
The bottom detection works on zarr files created by CRIMAC-preprocessing.
https://hub.docker.com/r/crimac/bottomdetection
Mounted directories:
/in_dir
- Input directory containing zarr data./out_dir
- Output directory where the annotation file will be written./work_dir
- Directory with LSSS work files. Needed only whenALGORITHM
is set towork_files
.
Options as environment variables:
-
INPUT_NAME
- Name of the zarr file inin_dir
. -
OUTPUT_NAME
- Name of the annotation file inout_dir
. The output format is given by the file name suffix.- Pandas DataFrame:
.csv
.html
.parquet
- Xarray Dataset:
.nc
.zarr
- Pandas DataFrame:
-
ALGORITHM
- Optional. The bottom detection algorithm to use:angles
- For data with sloping bottom. Used by thecombined
algorithm.combined
- A combination of theedge
andangles
algorithms.constant
- A very fast algorithm for testing and debugging.edge
- For data with flat bottom. Used by thecombined
algorithm.simple
- Backstepping from maximum sv.work_files
- Uses the lowest layer boundary in LSSS work files as the detected bottom. The/work_dir
directory must be mounted.
See more details in a separate document on the bottom detection algorithms.
-
Algorithm parameters. Optional.
PARAMETER_minimum_range
[m] - The minimum range of the detected bottom.PARAMETER_offset
[m] - Additional offset to the bottom after backstepping.PARAMETER_threshold_log_sv
[dB] - The minimum Sv value for detecting bottom.
Example:
docker run -it --name bottomdetection \
-v /home/user/data:/in_dir \
-v /home/user/output:/out_dir \
--env INPUT_NAME=dataset.zarr \
--env OUTPUT_NAME=bottom.parquet \
--env ALGORITHM=simple \
--env PARAMETER_offset=0.5 \
crimac/bottomdetection