python 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 spent a lot of time in the lab last month, taking measurements with an Anritsu 37xxxC series VNA. It would've taken me even longer if I hadn't made this little python script to control the VNA over GPIB.

    Anritsu VNA Python Script

    I spent a lot of time in the lab last month, taking measurements with an Anritsu 37xxxC series VNA. It would've taken me even longer if I hadn't made this little python script to control the VNA over GPIB.

    Continue Reading...