scripts & stuff Archive

  • As part my PhD, I used GPS satellites to measure the beam pattern of a telescope I built. While this can be done easily with the pyEphem module, I found that there wasn’t much documentation out there on the interwebs. So, I’ve written a simple Python script (below) which takes […]

    GPS sattelite tracking in Python using pyEphem

    As part my PhD, I used GPS satellites to measure the beam pattern of a telescope I built. While this can be done easily with the pyEphem module, I found that there wasn’t much documentation out there on the interwebs. So, I’ve written a simple Python script (below) which takes […]

    Continue Reading...

  • I recently spent a few weeks at the Medicina Radiotelescope, Italy, working on getting data from a correlator into a format that CASA and AIPS could read. To do this, I made a python script to convert the data into a FITS IDI file. The FITS Interferometry Data Interchange Convention […]

    pyFitsidi – Python FITS IDI writing

    I recently spent a few weeks at the Medicina Radiotelescope, Italy, working on getting data from a correlator into a format that CASA and AIPS could read. To do this, I made a python script to convert the data into a FITS IDI file. The FITS Interferometry Data Interchange Convention […]

    Continue Reading...

  • Typing in “bottle python awesome” into Google doesn’t produce anywhere near as many results as it should. Bottle is an amazingly easy to use, lightweight framework with a very simple template engine, and all the goodies that you’ll want for form handling, cookies and that sort of thing. It’s not […]

    Bottle: Quick Python Web Apps

    Typing in “bottle python awesome” into Google doesn’t produce anywhere near as many results as it should. Bottle is an amazingly easy to use, lightweight framework with a very simple template engine, and all the goodies that you’ll want for form handling, cookies and that sort of thing. It’s not […]

    Continue Reading...

  • I recently ran into an error on my Mac install of LyX, where pdf images weren’t being displayed. After some searching, it looks like the error is a bug in Ghostscript 8.70, and can be fixed easily: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg80148.html With Ghostscript 9.00 now out, this bug should be squashed (although I […]

    LyX: Error converting PDF to loadable format

    I recently ran into an error on my Mac install of LyX, where pdf images weren’t being displayed. After some searching, it looks like the error is a bug in Ghostscript 8.70, and can be fixed easily: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg80148.html With Ghostscript 9.00 now out, this bug should be squashed (although I […]

    Continue Reading...

  • To celebrate the release of LyX 1.6.6, I thought I’d upload an Oxford Thesis Template for mathematics/physics/engineering, based on K. Gillow’s excellent LaTeX class. While it’s tailored to Oxford, with a few modifications I’m sure it could be used for any thesis. To get it working, you’ll  have to copy […]

    Oxford LyX Thesis Template

    To celebrate the release of LyX 1.6.6, I thought I’d upload an Oxford Thesis Template for mathematics/physics/engineering, based on K. Gillow’s excellent LaTeX class. While it’s tailored to Oxford, with a few modifications I’m sure it could be used for any thesis. To get it working, you’ll  have to copy […]

    Continue Reading...