i2f(1)

πŸ’« i2f β€” write FITS files from IRAF image files πŸ’«

okay bestie, so you've got a manual page here from the General Commands Manual crew, and it's about a lil tool called i2f. she's part of the WCSTools family, she's an icon, she converts stuff, and honestly? she's about to make your IRAF images glow all the way up into FITS format. let's get into it 🫢


🌸 NAME 🌸

i2f β€” write FITS files from IRAF image files

no cap, that's literally it. the whole job. IRAF image goes in, FITS image comes out. manifesting ✨


πŸŽ€ SYNOPSIS πŸŽ€

i2f [options] file.imh ...

so you call her with your options, then one or more .imh files, and she handles the rest. the ... at the end is not a typo, bestie, she takes as many files as you want. greedy in the best way πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

i2f is a utility for converting IRAF images to FITS images. that's the whole vibe. that's her purpose. she's booked and busy doing exactly one thing and doing it flawlessly πŸ’–

now listen, if what you actually want is to change the number of bits per pixel, that is not her department β€” go use imrot for that. i2f does not do that. do not ask her. she will not. πŸ™ˆ

here's the tea on what she sets for you: the BITPIX, NAXIS, NAXIS1, NAXIS2, OBJECT, and PIXFILE keywords all get set from the binary portion of the header. so like, she's pulling from the real header data, not vibing off guesses. πŸ‘‘

and then there's IMHFILE and PIXFILE, which get set from the actual filenames β€” that's for internal purposes, iykyk. 🧚


✨ OPTIONS ✨

one bullet per flag, every single one, let's go:

  • -d directory β€” moves the .imh file to this directory πŸ—‚οΈ
  • -i β€” deletes unnecessary IRAF keywords 🧹
  • -o filename β€” output name, for when you've only got one file to handle ✍️
  • -s β€” writes the output to standard output instead of a file πŸ“€
  • -v β€” verbose listing of processing intermediate results, aka she narrates the whole journey πŸ—£οΈ
  • -x β€” deletes the IRAF image file after successfully writing the FITS file ⚠️
ok real talk on -x: that flag deletes your IRAF image file once the FITS file has been written successfully. "successfully" is doing a lot of heavy lifting in that sentence, so be sure you actually want that before you type it. protect your files, bestie 😭

πŸ’œ AUTHOR πŸ’œ

Jessica Mink, SAO (jmink@cfa.harvard.edu) β€” the queen who made all of this happen πŸ‘‘


and that's the whole page, fr fr. this one came out of WCSTools, dated 6 July 2001 β€” yeah she's vintage but she ate and left no crumbs. go convert something iconic, bestie πŸ’…βœ¨πŸŒΈ