This code addresses part of #513 (for DAOphot).  I had to guess at the allowed format specifiers.