A library for handling spectrum data