Skip to content

Commit

Permalink
Use accident hotspots from entire German region
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMatthes authored Apr 8, 2024
1 parent c8264b8 commit f156170
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions export_accidents.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ def process_shp_file_of_year(year):
except DataSourceError:
raise FileNotFoundError(f"The .shp file with the accident data for the year {year} could not be found. It is very likely that the 'Statistische Ämter' have changed the structure of the .zip files (containing the .shp file) they offer for download. This has already happened in the past. Please compare the structure of the folder `data/temp/{year}` with the given path {shp_file_path} (from get_shp_path({year})). Check the README.md for more information.")

# see documentation (link in readme), 02 is code for hamburg
logging.info("Selecting features from Hamburg.")
shp_file = shp_file[shp_file["ULAND"] == "02"]
logging.info("Selecting features where bike was involved.")
shp_file = shp_file[shp_file["IstRad"] != "0"]
logging.info("Convert CRS to EPSG:4326")
Expand Down

0 comments on commit f156170

Please sign in to comment.