Read-only mirror of https://github.com/MeteoSwiss/ehw24-hail-photogrammetry — MeteoSwiss. Issues & pull requests at the source.
  • Python 60.7%
  • Jupyter Notebook 38.9%
  • Shell 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-11-27 17:39:20 +01:00
detection Handle single models 2025-11-27 17:37:47 +01:00
DHAPpy Include tif files 2025-11-27 16:42:01 +01:00
figures Initial commit 2024-10-22 17:04:45 +02:00
notebooks Adapt notebooks to zenodo data 2025-08-07 19:28:13 +02:00
tests Move into package 2025-07-28 18:44:35 +02:00
training Use argument 2025-08-07 19:32:25 +02:00
zenodo Ignore local contents 2025-08-07 14:41:24 +02:00
.gitignore Fix filename 2025-08-07 19:31:42 +02:00
FLOW.md Add flowchart 2025-08-07 19:34:13 +02:00
README.md Add links to data on zenodo 2025-11-27 17:39:20 +01:00

ehw24-hail-photogrammetry

This repository contains the code used for the upcoming publication Performance assessment of drone-based photogrammetry coupled with machine-learning for the estimation of hail size distributions on the ground in the special issue Outcome of the 4th European Hail Workshop 2024: Opening the discussion .

Content

  • detection: Scripts used to run the model to detect hail in image tiles
  • DHAPpy: Prototype of a python package used in notebooks for further development
  • training: Scripts used to train the RCNN models with detectron2
  • notebooks: Notebooks used to prepare and analyze the data
  • zenodo: Data placeholder for experiments and event (see zenodo/README.md)

Usage

First, clone this repository, navigate into it and install the package DHAPpy (python >= 3.11) with pip:

python -m pip install -e DHAPpy

If you use anaconda, you can use pip inside it.

You can then run commands like this for example:

python -m dhappy.cli split-tiles PATH_TO_IMAGES

Detection

To detect hail in tiles, install detectron2 and run the following:

python detection/detect_hail_lom.py /store_new/mch/msrad/msradv/drone/models/model_20220628/events/20220628 /store_new/mch/msrad/msradv/drone/hail_events/20250523_JS/20250523-ortho-clean -n jtm lai por -t 0.55 0.85 0.6 -f .tif

Data

DOI DOI

Model base

For botn experiments and event, we used the R50-FPN 3x baseline for COCO Instance segmentation from the detectron2 model zoo.

References:

  • https://github.com/mlainer/hail-photogrammetry
  • Portmann, J., Lainer, M., Brennan, K. P., Jourdain de Thieulloy, M., Guidicelli, M., and Monhart, S. (2025). Performance assessment of drone-based photogrammetry coupled with machine-learning for the estimation of hail size distributions on the ground. Front. Environ. Sci. 13, 1602917. doi:10.3389/fenvs.2025.1602917