Python code to extract an individual star spectrum from the grids to a fits file.