Python & c++ tools

Python Related:

THE LINKS ON THIS PAGE NEED TO BE UPDATED DUE TO THE MOVE TO THE NEW BLOG HOST

  • Pynterferometer – a GUI to to show radio telescopes work
  • [FITS files in Python] – an example of how to read FITS files in and use them in python. [more here]
  • [Fitting data with python] – an example of how to fit data with the help of scipy. [more here]
  • [Matplotlib Convolution Animation] – an example of how todo a convolution in python with the aid of scipy. [more here]
  • [More convolutions] – an example of how todo a convolution in python with the aid of scipy. [more here]
  • [Degrees to steradians] – I quite often find myself wanting to convert from square degrees to steradians (SI unit for solid angle), its simple but I waste too much time doing it (just recalling if its pi/180 or the otherway etc), so I’ve wrote a python script (note: php version below) [more here]
  • [Pyspec] – I’ve released the [first version of Pyspec] – a python spectroscopy tool that I’ve written . Its still very much in its infancy and is currently really only designed to deal with basic data taken at the [University of Birmingham Observatory], (note FULL PACKAGE) [more here]
  • [Pyphot] – I’ve released the [first version of Pyphot] – a bash/python image analysis script that uses sextractor to extract sources and complete photometry. Its still very much in its infancy and is currently really only designed to deal with basic data taken at the [University of Birmingham Observatory] (note FULL PACKAGE) [more here]
  • [Tickmarks in matplotlib] – Over time I’ve become more and more a lover of Python. I still don’t use half of the fancy stuff and very much use it as a scripting language, but as you can see from some previous posts I really do think that it is well suited for astronomical purposes. Anyway, I digress, one thing that was bugging me was producing publication quality plots. I’ve still got things to tweak with my plots but I think I’m finally happy with my script and thought I’d share one vital thing – tickmark lenghts. It took me ages to figure out what paramter this was called and lets be honest if no body else gets any use from this I’m bound to the next time I forget / can’t find any code with this implmeneted in.[more here]

bp1

c/c++:

THE LINKS ON THIS PAGE NEED TO BE UPDATED DUE TO THE MOVE TO THE NEW BLOG HOST

  • [Random number in c++] – how to draw random numbers fast in c/c++.
  • Image Manipulation:
  • [Make grids of images] – Ever need to create subplots (or a nice mosaic of images) and can’t be bothered to figure out how todo it in what ever programming language, or have to open up photoshop or gimp and have to manually reposition everything? [more here].
  • [Converting ps to png] – Simple thing todo, hard for me to remember to set the density arguement [more here].
  • [Turning a PDF into an animated GIF] – I was asked to take a bunch of PDF files (essentially frames of the animation) into an animated GIF. This is actually a fairly simple task todo with [imagemagick] and its fast too. [more here].
  • [Simple image resizing] – I quite often process my images before I stick them online and so don’t often need to bulk resize them, but occasionally it is quite useful. [more here].

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s