Feed on Posts or Comments

english & programming & visualisation Franchu on 15 Dec 2009 11:29 pm

United Kingdom’s Met Office dataset preliminary analysis: The Processing script

After posting yesterday the R script that generates the averaged temperatures files, you can find in my GitHub page the Processing script I used to generate the video in the post. Downloading the whole folder should be all you need to be able to reproduce the animation in your computer and with higher quality than what you see online as it got very degraded due to the compression.

I am aware that the code is not very good nor clean, but given that it was my first shoot at doing something with Processing and I was in a trial and error mode I think it is quite normal. I also don’t feel like spending time improving this code as there are other visualisations that I want to work on and where I will have the opportunity of correcting the mistakes I am already aware of.

I just wanted to mention a couple of things:

  • Processing does not support the declaration of enums inside a pde project. If you declare them in an external Java file you can use them in the pde. That is why the code looks weird passing String to define the type of dataset, and having all those cascading if-elseif statements.
  • The code could benefit from a more OO approach and use polymorphism to avoid some repetitions. I promise I will do better next time ;)

As usual, feedback and new ideas are very welcome :)

Related posts:

  1. United Kingdom’s Met Office dataset preliminary analysis: The R script As promised, I want to share with you the R...
  2. United Kingdom’s Met Office dataset preliminary analysis The United Kingdom’s Met Office recently released temperature data for...

Related posts brought to you by Yet Another Related Posts Plugin.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply