WCSWARE(1)
β¨ WCSWARE(1) β¨
okay bestie, welcome to the User Commands section of the manual, because this lil icon lives there π
πΈ NAME πΈ
wcsware β extract FITS WCS keywords for an image π¦
π SYNOPSIS π
wcsware [<option>]... [<fitsfile>]
π DESCRIPTION π
wcsware pulls the WCS keywords for an image out of the FITS file you point it at, builds wcsprm structs for every single coordinate representation it finds, and then does a whole variety of operations with them. and like, the "lint" capability is genuinely one of its more useful operations β no cap π
By default, all known extensions to the FITS WCS standard are allowed, including deprecated usage. but bestie, the second you go into "lint" mode? strict conformance to the standard is enforced. periodt.
You can hand it the FITS file using the syntax that cfitsio understands. for example, "file.fits.gz+1" refers to the first extension (that's the second HDU, iykyk) of a gzip'd FITS file. and if you wanna feed it from stdin, just use "-" or literally just omit the file name entirely π
π OPTIONS π
-a<alt>β specify an alternate coordinate representation (this one gets ignored if there's only one, so don't stress). you can also give it as a 0-relative index in the range 0 to 26, where alternates are sequenced alphabetically following the primary representation.-bβ usewcsbth()for primary image headers, when normallywcspih()is what gets used. (this implies-i.)-cβ applywcspcx()to thewcsprmstruct to decomposeCDi_jaintoPCi_jaandCDELTia. slay.-cpβ as for-c, and also unscramble axes. π«-Cβ as for-c, decomposeCDi_jaif present, otherwise recomposePCi_jaandCDELTia.-Cpβ as for-C, and also unscramble axes.-fβ applywcsfix()to the header.-h<hdu>β move to HDU number (1-relative) which is expected to contain an image array. this overrides cfitsio extended filename syntax. also super useful for input from stdin π-iβ allow image header WCS keywords in binary table headers.-lβ validate (lint) the WCS keyrecords in the specified FITS header for conformance to the WCS standard. (implies-s.)-mβ applywcstrim()to thewcsprmstruct.-oβ usewcshdo()to translate thewcsprmstruct into a FITS header and print it.-pβ print the struct(s) usingwcsprt()(this is the default operation, bestie β it just happens).-Pβ same as-pbut don't print a default struct.-rβ require strict adherence to the FITS WCS standard, though allowing the deprecated AIPS-convention keywords,CROTAn,EPOCH, andVELREF, and also some other deprecated usage. (it must follow-lif relaxed linting is what you're after.)-sβ require strict adherence to the FITS WCS standard, disallowing all deprecated features. no exceptions fr fr.-tβ terse (with-l), report rejected WCS keyrecords only.-vβ verbose (with-l), report recognised WCS keyrecords as well.-wβ convert world coordinates, obtained from stdin, to pixel coordinates usingwcss2p().-xβ convert pixel coordinates, obtained from stdin, to world coordinates usingwcsp2s().-zβ print the size of thewcsprmstruct, including allocated memory. π«Ά
and that's the whole vibe check, bestie π this was wcsware version 8.9 from June 2026 β go forth and lint, you absolute icon πβ¨
π¦ where this page comes from
- ubuntu stonking: wcslib-tools 8.9+ds-2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms