kostas

kostas

Downloading environment data for Denmark

This post is very Denmark-specific. I was annoyed that downloading environmental data from the ministry of the environment was so cumbersome. Long story made short, here are download URLs for environmental data: Dataset URL Kirkebyggelinjer KIRKEBYGGELINJER_SHAPE.zip Skovbyggelinjer SKOVBYGGELINJER_SHAPE.zip Åbeskyttelseslinjer AA_BES_LINJER_SHAPE.zip…

Ordering cheat sheet

Non-strict orders: ≤ The symbol ≤ denotes a generalization of “less than or equal”, and it defines either a partial or total ordering over a set P (in the table below a,b ∈ P): Constraint (Non-strict) partial order (Non-strict) total…

How I use Mendeley in my studies

This is how I use the Mendeley system for managing my phd. Mendeley has the ability to full-text search downloaded academic papers, and features for adding notes, tags, keywords and more. The advantage is that I can quickly retrieve a…

Data-parallelism vs Task-parallism

Adapted from an article I found by Googlin’. There are many ways to define this, but simply put: Task parallelism is the simultaneous execution on multiple cores of many different functions across the same or different datasets. Data parallelism (aka…

Using the Python debugger

A few days ago I found out that using the Python debugger is so easy, I can’t believe I haven’t used it before. Import the module: import pdb Set a breakpoint somewhere in your code: def some_function(self, x, y, z):…

Clustering in Python

In a project I’m going to use clustering algorithms implemented in Python, such as k-means. Clustering scipy.cluster has been reported to have some problems, so for now I’ll use PyCluster (following advice given on stackoverflow). Install PyCluster: pip install…