Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ab45d70
first working version with DamageScanner class instead of function to…
ElcoK Dec 19, 2023
d283cd8
working version of damagescanner class for floods and windstorms, for…
ElcoK Jan 9, 2024
98b09f0
class works
ElcoK Jan 11, 2024
efa03b6
example notebooks
ElcoK Jan 26, 2024
8907dcd
fully reorganised, duplicates and reproject fixed
ElcoK Nov 9, 2024
335fbe1
refactored damagescanner
ElcoK Nov 11, 2024
664f290
refactored damagescanner
ElcoK Nov 11, 2024
40dc89c
all infra types work for exposure
ElcoK Nov 12, 2024
7305140
osm integrated with many infra systems. Can run all geomtries at once…
ElcoK Nov 12, 2024
8b0f9ed
remove file
ElcoK Nov 12, 2024
e60a98b
remove file
ElcoK Nov 12, 2024
9604a1f
remove file
ElcoK Nov 12, 2024
de5656a
ready for pre-release
ElcoK Nov 19, 2024
e2966a9
ready for pre-release
ElcoK Nov 19, 2024
c09f7c9
pre-release
ElcoK Nov 19, 2024
4e8dac2
pre-release try 100
ElcoK Nov 19, 2024
7b21bfe
fixed many issues
ElcoK Nov 25, 2024
083884d
fixed few more bugs
ElcoK Nov 27, 2024
b1c6af2
bump version
ElcoK Nov 29, 2024
1c3ad7b
bump version
ElcoK Nov 29, 2024
398062f
bump version
ElcoK Nov 29, 2024
ffe4bd1
bump version
ElcoK Nov 29, 2024
585eda6
apparently this was not the last version with changes
ElcoK Nov 29, 2024
4a07835
add download and config for temp fix with gdal issue
ElcoK Feb 10, 2025
e33e615
fix config issue, rasterscanner was gone and vector now does not conv…
ElcoK Feb 10, 2025
53f6494
fix several errors
ElcoK Feb 21, 2025
9f67580
latest versions
ElcoK Feb 28, 2025
fddf001
new version release
ElcoK Feb 28, 2025
1acabce
add paper outline and removed redundant py files
ElcoK Mar 25, 2025
8d4af4b
add paper outline and removed redundant py files
ElcoK Mar 25, 2025
3acf169
perform ruff check, ruff format, improve installation files, start wi…
jensdebruijn Mar 26, 2025
2042c15
Merge branch 'DS1.0' of github.com:VU-IVM/DamageScanner into installa…
jensdebruijn Mar 26, 2025
fd0c0e4
fix several checks
jensdebruijn Mar 26, 2025
ab00c97
test first run new docs
ElcoK Mar 31, 2025
65afe65
test first run new docs
ElcoK Mar 31, 2025
59cf8cf
test first run new docs
ElcoK Mar 31, 2025
d0e37f1
decent new version of mkdocs
ElcoK Apr 1, 2025
3ea8a52
updated how it works
ElcoK Apr 2, 2025
21799a9
update docs
ElcoK Apr 2, 2025
36fd183
update docs
ElcoK Apr 2, 2025
bd23188
update logo readme
ElcoK Apr 3, 2025
529d9e3
add output_file save option
ElcoK Apr 17, 2025
0a1ac02
add output_file save option
ElcoK Apr 17, 2025
5a8d335
move to np trapz and fix telecom
ElcoK May 15, 2025
c02a813
move to np trapz and fix telecom
ElcoK May 15, 2025
1960aaa
hopefully the final fix for telecom
ElcoK May 19, 2025
9ee38df
fix telecom
ElcoK May 26, 2025
83046c6
fix negative values
ElcoK May 26, 2025
77d157c
speed up damage scanner + various fixes
jensdebruijn Jul 14, 2025
199a8fc
bump version number
jensdebruijn Jul 14, 2025
492acd8
Merge pull request #47 from VU-IVM/installation
jensdebruijn Jul 14, 2025
347c2c6
ruff format
jensdebruijn Jul 14, 2025
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
44 changes: 0 additions & 44 deletions .github/workflows/ci.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Draft PDF
on: [push]

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: paper/paper.pdf
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: "release"
url: https://pypi.org/project/geb/
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Set up uv
# Install latest uv version using the installer
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install the project
run: uv sync
- name: Build package
run: uv build
- name: Publish package distributions to PyPI
run: |
uv publish --trusted-publishing always --publish-url https://upload.pypi.org/legacy/
24 changes: 24 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pytest

on:
push:
branches: '*'
pull_request:
branches: '*'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Set up uv
# Install latest uv version using the installer
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install the project
run: uv sync --dev
- name: Run tests
run: uv run pytest -s
29 changes: 0 additions & 29 deletions .github/workflows/release.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/ruff-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff check
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
10 changes: 10 additions & 0 deletions .github/workflows/ruff-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Ruff format
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DamageScanner: direct damage assessments for natural hazards

<img align="right" width="200" alt="Logo" src="https://raw.githubusercontent.com/ElcoK/DamageScanner/master/doc/ds_logo.png">
<img align="right" width="200" alt="Logo" src="https://raw.githubusercontent.com/ElcoK/DamageScanner/installation/docs/images/logo-dark.png">


[![github repo badge](https://img.shields.io/badge/github-repo-000.svg?logo=github&labelColor=gray&color=blue)](https://github.com/ElcoK/DamageScanner)
Expand Down
Binary file not shown.
File renamed without changes.
Binary file added data/jamaica/exposure/jamaica-latest.osm.pbf
Binary file not shown.
Binary file added data/jamaica/hazard/FD_1in1000.tif
Binary file not shown.
12 changes: 12 additions & 0 deletions data/jamaica/hazard/FD_1in1000.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_APPROXIMATE">YES</MDI>
<MDI key="STATISTICS_MAXIMUM">999</MDI>
<MDI key="STATISTICS_MEAN">-9220.6562743755</MDI>
<MDI key="STATISTICS_MINIMUM">-9999</MDI>
<MDI key="STATISTICS_STDDEV">2797.7216897637</MDI>
<MDI key="STATISTICS_VALID_PERCENT">100</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions data/jamaica/vulnerability/curves_osm.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
depth,grass,forest,orchard,residential,education,industrial,retail,railway,farmland,cemetery,construction,meadow,farmyard,scrub,allotments,reservoir,static_caravan,commercial,unclassified,primary,secondary,tertiary,trunk,trunk_link,motorway,motorway_link,primary_link,secondary_link,tertiary_link,yes,house,hospital,hotel,apartments,roof,houseboat,greenhouse,school,church,civic,shed,garage,office,tech_cab,fire_station,public,service,factory,farm_auxiliary,storage_tank,parking,bicycle shed,track,raceway,cycleway,escape,bridleway,path,living_street,footway,pedestrian,steps,religious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6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6
2.0,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8
2.5,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
78 changes: 78 additions & 0 deletions data/jamaica/vulnerability/maxdam_osm.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
object_type,damage
grass,5
forest,10
orchard,50
residential,100
education,200
industrial,300
retail,300
railway,100
farmland,10
cemetery,15
construction,10
meadow,5
farmyard,5
scrub,5
allotments,10
reservoir,5
static_caravan,100
commercial,300
unclassified,100
primary,100
secondary,100
tertiary,100
trunk,100
trunk_link,100
motorway,100
motorway_link,100
primary_link,100
secondary_link,100
tertiary_link,100
yes,300
house,300
hospital,300
hotel,300
apartments,300
roof,300
houseboat,300
greenhouse,300
school,300
church,300
civic,300
shed,300
garage,300
office,300
tech_cab,300
fire_station,300
public,300
service,300
factory,300
farm_auxiliary,300
storage_tank,300
parking,300
bicycle shed,300
track,50
raceway,50
cycleway,50
escape,50
bridleway,50
path,50
living_street,50
footway,50
pedestrian,50
steps,50
religious,300
quarry,200
recreation_ground,100
landfill,100
yes,100
basin,0
military,300
brownfield,50
salt_pond,0
islet,0
car park,100
parking lot,100
fence,50
greenfield,100
village_green,200
File renamed without changes.
Binary file added data/kampen/exposure/landuse.gpkg
Binary file not shown.
Binary file added data/kampen/exposure/landuse_map.tif
Binary file not shown.
Binary file added data/kampen/hazard/1in1000_inundation_map.tif
Binary file not shown.
Binary file added data/kampen/hazard/1in100_inundation_map.tif
Binary file not shown.
Binary file added data/kampen/hazard/1in10_inundation_map.tif
Binary file not shown.
Binary file added data/kampen/hazard/1in500_inundation_map.tif
Binary file not shown.
Binary file added data/kampen/hazard/1in50_inundation_map.tif
Binary file not shown.
12 changes: 12 additions & 0 deletions data/kampen/hazard/inundation_map.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_APPROXIMATE">YES</MDI>
<MDI key="STATISTICS_MAXIMUM">9</MDI>
<MDI key="STATISTICS_MEAN">1.111061576143</MDI>
<MDI key="STATISTICS_MINIMUM">0</MDI>
<MDI key="STATISTICS_STDDEV">1.3355290915422</MDI>
<MDI key="STATISTICS_VALID_PERCENT">100</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
File renamed without changes.
10 changes: 10 additions & 0 deletions data/kampen/hazard/windstorm.nc.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MINIMUM">10.566699981689</MDI>
<MDI key="STATISTICS_MAXIMUM">43.524997711182</MDI>
<MDI key="STATISTICS_MEAN">16.507968966019</MDI>
<MDI key="STATISTICS_STDDEV">4.237080098177</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Loading
Loading