Extracting colour channel data in Python
Flatbed film scanners are used within radiation oncology medical physics departments for the scanning of radiosensitive film. Depending on the film in use, a physicist will want to extract colour channel data from the scan, which is frequently saved as a…
Python Exercise #1C – Film Calibrator
Radiosensitive film is frequently used by radiation oncology medical physicists for quality assurance measurements. The physicist is sometimes interested in obtaining a calibrated dose value (as opposed to relative values). One calibration method, using calculated optical density (OD) values, involves…
Python Exercise #1B – Field Size Calculator
The field size of a radiation beam is generally defined using the 50% isodose line. When examining cross-plane or in-plane dose profiles, this can be referred to as the full width at half maximum (FWHM). The second python exercise, detailed here, was…
Python Exercise #1A – MLC shaper
The MLC Shaper application, developed by Varian, allows the creation of .MLC files that can be used to deliver multi-leaf collimated fields in service. The first python exercise, detailed here, was to develop similar software to allow the creation of…

Medical Physics Python Exercises #1
The radiation oncology medical physics group at the Royal Brisbane and Women’s Hospital have started a series of tutorials on the Python language. For the second tutorial, we will be discussing solutions to a few example medical physics exercises, detailed…

Python for Medical Physicists #1
Python is a programming language that is popular among scientists, including medical physicists. The radiation oncology medical physics group at the Royal Brisbane and Women’s Hospital have started a series of tutorials on the Python language. These will serve as an…
Parsing DOSXYZnrc results
The results of a DOSXYZnrc simulation are stored in *.3ddose files containing the following blocks: the number of voxels in the x, y and z dimensions, the voxel boundary positions (cm) in the x dimension, the voxel boundary positions (cm)…
CSV File Handling
The software I’ve developed typically supports the export of data in CSV format, as such data can generally be processed simply by third party software. The processing of comma-separated values (CSV) is a fairly simple process – and is probably…