Sandeep Dhakal
  • Posts
Categories
All (16)
agent-based-modelling (1)
animation (1)
crime (1)
data analysis (1)
DEM (1)
earthquakes (1)
elections (1)
GIS (4)
gis (3)
go (2)
matplotlib (1)
note (4)
notebook (2)
PostGIS (1)
python (4)
sankey (1)

Posts

Analysing crime statistics for Brisbane

crime
The Qld government’s Open Data Portal provides the crime location API. This API gives us a list of reported offence, type of office and geographic location (such as suburb…
May 20, 2025

Efficiently dissolving adjacent polygons by attributes in a large GIS database

GIS
PostGIS

Using PostGIS to efficiently dissolve adjacent polygons by attributes in a large-table with >750k rows of data.

May 15, 2025

Spatial KDE plots in Python

GIS

In this notebook, I generate spatial kde plots in Python using Matplotlib and Seaborn.

Apr 28, 2025

Animated scatter plot with size legend with matplotlib

animation
matplotlib
I have been looking at generating animated plots using Matplotlib, with the official documentation providing an excellent example for basic animations.
Apr 17, 2025

Zonal statistics: mean elevation of brisbane suburbs

GIS
DEM
As part of my geospatial analysis journey and the mapping of various things in Brisbane, in this notebook I will look at the digital elevation data of Brisbane suburbs.
Apr 15, 2025

Import GeoJSON files into a PostGIS database

python
gis
When importing data in a GeoJSON file to a PostGIS database, we will do so using Python and apply the following process:
Apr 11, 2025

Visualising preference flows in 2024 QLD state elections

sankey
elections
I have recently written a dashboard to explore the preference flows of votes during the 2024 QLD state elections. The dashboard is available here.
Mar 10, 2025
 

Converting long DOIs to short DOIs

go
When writing a paper recently, I came across the shortDOI service that creates short aliases for long DOIs. For example, instead of a long DOI like 10.1016/j.virusres.2019.19…
Dec 13, 2024

A sample run of the model

Running agent-based model simulations on the browser with Go

go
agent-based-modelling
I’ve been thinking about sharing interactive examples of some agent-based models for a while. And I had always thought of putting the code behind a running Python kernel…
Nov 1, 2024
Sandeep Dhakal

Visualising Earthquakes in Nepal

python
notebook
gis
data analysis
In this notebook, we will download data about earthquakes in Nepal from USGS and produce a dashboard to explore the data interactively.
Oct 15, 2024

Visualising Earthquakes in Nepal

GIS
earthquakes
In this notebook, we will analyse the earthquakes that occurred in Nepal since 2010.
Oct 15, 2024

Testing DuckDB’s spatial extension’s Integration with GeoPandas

python
gis
notebook
Having read about DuckDB’s spatial extension, I wanted to check if I could integrate DuckDB into my workflow. I primarily use GeoPandas for my spatial tasks within the…
Jun 10, 2024
 

Using mamba solver with conda

note
python

How to use the mamba solver with conda without installing mamba

Apr 24, 2024
Sandeep Dhakal
 

Amend last git commit

note
If we forget to include some file(s) with a git commit, or want to change the commit message, the git commit --amend is a convenient method.
Apr 18, 2024
 

Formatting markdown tables

note
We can easily format a markdown table in vim using pandoc. Starting with the below table
Mar 28, 2024
 

Moving matching lines to end of file in vim

note
In vim, we can move all matching lines to the end of the file using the global command (g).
Mar 27, 2024
No matching items