Posted on

TerroRism in Deutschland

The leader of the FDP, the liberal party, here in Bremen has suggested banning non-EU citizens from attending or organising demonstrations in order to cut down on “imported” extremism. Let’s be clear here, he isn’t talking about non-EU citizens like me, he’s talking about brown people. Because there is a trend within German mainstream politics that extremism, and especially antisemitic extremism, is an imported thing. Germany, after all, dealt with all this following the second world war. They even built a monument to it in Berlin.
This annoyed me.
So I decided to grab a list of terrorist attacks in Germany in order to see exactly where the violent extremism that is tearing Germany apart comes from. I hit up wikipedia and downloaded the tables from this page and then took all the years from 2000 to present and combined them into a single file. I want to make a map of all the terror attacks since the year 2000 so as to be able to visualise the attacks, so I used a small python script to calculate the coordinates for each town/city with a terrorist attack.

Click here to skip the nerdy bits

import pandas as pd  
from geopy.geocoders import Nominatim  
from pyproj import Transformer  

# Load the CSV file  
df = pd.read_csv('combined.csv')  

# Initialize the geolocator  
geolocator = Nominatim(user_agent="geoapiExercises")  

# Initialize a transformer to convert to EPSG:3857 (ESRI:102100)  
transformer = Transformer.from_crs("epsg:4326", "epsg:3857")  

# Create two empty columns for X and Y coordinates  
df['X'] = None  
df['Y'] = None  

# Function to get coordinates and transform them  
def get_coordinates(town):  
    try:  
        # Get the location of the town  
        location = geolocator.geocode(town + ', Germany')  
        if location:  
            # Convert latitude and longitude to EPSG:3857  
            x, y = transformer.transform(location.latitude, location.longitude)  
            return x, y  
        else:  
            return None, None  
    except:  
        return None, None  

# Iterate through the towns/cities in the 'Ort' column and get coordinates  
for i, town in df['Ort'].items():  
    x, y = get_coordinates(town)  
    df.at[i, 'X'] = x  
    df.at[i, 'Y'] = y  

# Save the updated dataframe to a new CSV  
df.to_csv('combined_with_coordinates.csv', index=False)  

print("Coordinates added and saved to combined_with_coordinates.csv")

The I added a new column called ‘Ideology’ and went through each entry and input ‘left’, ‘right’, or ‘islamist’ where the ideology of the attacker was clear. I then filtered the file to remove all rows with no value in the Ideology column.

csvgrep -c "ideology" -r ".+" combined_with_coordinates.csv > filtered.csv

This left me with 184 incidents since the year 2000.
Next was a tad more difficult. Many of the incidents labelled here as terror attacks are not what I would refer to as terrorism. Violence, yes, but not terrorism. So I want to here to differentiate between terrorism, political violence, and racist/antisemitic violence.
Terrorism is, for my purposes here, the use of violence to instill terror in a given population/group in order to create political or cultural/political change. So I will not be counting property destruction, individual racist attacks or political assassination. Violent these things may be, but their aim is not to instill terror in a population. I will however be including the murders carried out by the National Socialist Underground, as the purpose of those murders was to create terror within immigrant communities.
So, after going through and somewhat arbitrarily removing rows where the attack doesn’t meet my definition of terrorism I am left with 142 incidents. I will link to my data at the bottom of this piece.
Next I put together a Shiny app using R and upload it to shinyapps.io.

output$line_chart <- renderPlot({
    # Create a vector of German month names
    german_months <- c("Januar", "Februar", "März", "April", "Mai", "Juni", 
                       "Juli", "August", "September", "Oktober", "November", "Dezember")

    # Replace German month names with numerical equivalents in the date strings
    for (i in seq_along(german_months)) {
      terror$Datum.Beginn <- gsub(german_months[i], sprintf("%02d", i), terror$Datum.Beginn)
    }

    # Parse the date using lubridate, assuming the format is "dd mm yyyy"
    terror$Datum.Beginn <- dmy(terror$Datum.Beginn)
    terror$Year <- format(terror$Datum.Beginn, "%Y")

    # Process data for line chart: group by year and ideology, and count the attacks
    year_ideology_counts <- terror %>%
      group_by(Year, Ideology) %>%
      summarise(Count = n(), .groups = 'drop') %>%
      filter(as.numeric(Year) >= 2000)  # Filter data from the year 2000

    ggplot(year_ideology_counts, aes(x = Year, y = Count, color = Ideology, group = Ideology)) +
      geom_line(size = 1.2) +
      geom_point(size = 3) +  # Slightly larger points
      scale_color_manual(values = c("left" = "red", "right" = "#8B4513", "islamist" = "black")) +

      # Apply grey background and style the text with a black frame
      theme(
        panel.background = element_rect(fill = "white", color = NA),    # White background inside the plot
        plot.background = element_rect(fill = "white", color = NA),     # White background around the plot
        panel.border = element_rect(color = "black", fill = NA, size = 1.5),  # Black border/frame
        legend.position = "none",                                       # Remove the legend
        axis.text = element_text(size = 14, face = "bold"),             # Larger and bold axis text
        axis.title = element_text(size = 16, face = "bold"),            # Larger and bold axis titles
        plot.title = element_text(size = 18, face = "bold")             # Larger and bold plot title
      ) +
      labs(x = "Year", y = "Number of Attacks", title = "")
  })

And if that all works, you should see an interactive map of Germany with all the terrorist attacks since the year 2000 which you can filter by right wing, left wing, or islamist. Then you should ask yourself, why the FDP want to ban foreigners from attending demonstrations and where the extremism is coming from…

Ta Da!

 

Posted on

Ostroer Schanze – 3D Model

Recently I have been looking at hill-top fortified enclosures in the eastern state of Saxony. I chose Saxony to look at as it is one of the states that puts a lot Geo-Data online for the public to freely access, just as it should be. I’m looking askance at you Niedersachsen… I’m interested in learning how to make 3D models of archaeological features in the landscape, carrying out viewshed analysis to see which features may or may not be related, and perhaps even predicting where as yet unidentified features may be found. To this end I downloaded the Lidar data from the website of the Landesamt für Geobasisinformation in Saxony and, after tweaking it a bit with CloudCompare, imported into QGIS in order to carry out a basic viewshed analysis and to create a 3D model which you can see below.

As you can hopefully see the hillfort, in the center of the image, has two sections with the section shaded green in the second image being the higher area. The fortification is bounded on the western side, to the left in the image, by the Klosterwasser, a small river, and a cliff of 21 meters. I don’t know for certain whetherthe western edge of the fortification had a wall though it could well be the case that it didn’t, given the natural protection from the steep western cliff. Although the wall could simply have collapsed at some point in the last two thousand years or so.

Profile of the western side of Ostroer Schanze

The viewshed looks out to the hills west of the fortification in order to see what parts of the landscape are viewable from the center of the higher area. My thinking here is that were the community going to build further monuments, with a mortuary or other ritual function, in the landscape they would do so somewhere that was visible from where they lived. I removed the satellite imagery that I had laid over my digital model and we can see that the Lidar scan has picked up subtle changes in the landscape within the viewshed. However there is nothing that looks like a monument. No telltale bumps or humps showing the remains of a mound or other structure within sight of the upper level of Ostroer Schanze.

Next I downloaded some orthographic photographs from the Landesamt für Geobasisinformation and laid them over my model to see if I could see any features.

Sadly not.

Oh well, better luck next time.