Partial implementation for multispec fits writer for legendre function