This is largely just like SimIm4, except I give the user the opton of which header style to use in recording the WCS in the imag header. Below is a sample command line for running SimIm5 and the header I get by using the last arguemnt set to "WCScd" to make the type of header using the CD-matrix style.
% SimIm5 N 30.0 N 1.0 WCScd % imhead Newwcs.fits # I record only wcs-related header cards CTYPE1 = 'RA---TAN' / Gnomonic Projection CTYPE2 = 'DEC--TAN' / Gnomonic Projection CRPIX1 = 100.000 / Axis 1 Reference CRPIX2 = 100.000 / Axis 2 Reference CRVAL1 = 180.000000000 / Ra at Frame, J2000 (deg) CRVAL2 = 32.500000000 / Dec at Frame, J2000 (deg) CUNIT1 = 'DEGREES ' / Units CUNIT2 = 'DEGREES ' / Units CD1_1 = -.24056261463556E-03 / CD1_1 term CD1_2 = -.13888889225200E-03 / CD1_2 term CD2_1 = -.13888889225200E-03 / CD2_1 term CD2_2 = 0.24056261463556E-03 / CD2_2 term CRVALE = 50.000 / Combined CRVAL error (arcsec)