I’ve just signed the Science Code Manifesto because I firmly believe in what it says. Ok well, that probably doesn’t tell you much – generally I tend to believe in things that I sign – but I’d like to tell you why I signed it, and why I think it’s really important. A lot of […]
As you might know from some of my previous posts, I’m a big fan of making my scientific work reproducible. My main reasons for being so keen on this are: Reproducibility is key to science – if it can’t be reproduced then it can not be verified (that is, the experiment can’t be tried again to […]
Recently I was shocked to find that there didn’t seem to be a simple tool which would convert BibTeX files to COINS metadata span tags – so I wrote one! That sentence probably made no sense to you – so lets go through it in a bit more depth. I use LaTeX to write all […]
Sphinx is a great tool for documenting Python programs (and lots of other things – I recently saw a lecturer who had done all of his lecture notes using Sphinx!) and I’ve used it for my new project (which will be announced on this blog in the next few days). Now that the project is […]
While processing some data at work today I had an issue where I had a raster dataset in ArcGIS, where all cells with invalid data had been set to 9999. Of course, this caused a lot of issues for the statistics on the dataset – basically they were all nonsense – so I needed to […]
In a project recently I was struggling to find a way to parse strings that contain a date range, for example: 27th-29th June 2010 Tuesday 29 May -> Sat 2 June 2012 From 27th to 29th March 1999 None of the Python modules I investigated (including parsedatetime) seemed to be able to cope with the […]
In my field I often need to plot polar contour plots, and generally plotting tools don’t make this easy. In fact, I think I could rate every single graphing/plotting package in the world by the ease of producing a polar contour plot – and most would fail entirely! Still, I have managed to find a […]
UPDATE: I’ve created a new site to host my John Snow data, and included various other modern formats (GeoPackage, GeoJSON etc). Please go there to download the data. In 1854 there was a massive cholera outbreak in Soho, London – in three days over 120 people died from the disease. Famously, John Snow plotted the […]
This problem is known by various names such as: Ctrl-Space doesn’t do anything in Eclipse! Why can’t I get auto-complete to work properly in Eclipse? I’ve just set up a new University computer and things don’t work like they do on my laptop (maybe that one’s just me…) It’s actually very simple to solve, but […]
When you try and reproject a dataset in ArcGIS (for example, by using the Project Raster tool) you will see a dialog a bit like the one below: The highlighted field wants you to specific a Geographic Tranformation. Although it says that it is optional, it often isn’t (I think the optionality depends on the type […]