This OTW script reads WCS-related parameters and creates an ASCII version of the corresponding WCS FITS header cards. Tow versions are generated:
% hcards_wcs.sh --help Usage: hcards_wcs.sh 12:00:00.00 +32:30:00.0 100.0 100.0 N 1.000 +30.0 25.0 arg1 - RAo (J2000) in sexigecimal format arg2 - DECo (J2000) in sexigecimal format arg3 - X position in pixels of RAo arg4 - Y position in pixels of DECo arg5 - mirror flip (yes=Y, No=N) arg6 - plate scale in arcsec per pixel arg7 - position angle (deg) of Y-axis to North arg8 - estimated combined RAo,DECo error in arcsec hcards_wcs.sh: Read basic WCS-related image parameters and write the standard WCS header cards. Two sets of header cards are made: 1) CDELT convention 2) CD_ rotation+scale matrix conventionIn Aug2017 I added a second type of wcs header type in hcards_wcs.sh. It uses the CD_ matrix formalism. Although not very intuitive, it seems to be used frequently (e.g. for the HET acm headers).