procedure write_cpt: convert matrix to numerical carpet
link writecpt August 7, 1997; Ralph E. Griswold This file is in the public domain.
write_cpt(output, carpet) writes the carpet with heading information to the specified file.