RAWTRAN(1)
β¨ RAWTRAN(1) β User Commands, bestie edition β¨
okay so you found the page for rawtran, which lives in section 1 of the manual (that's the "user commands" section, the one you can actually just run, no cap). pull up a chair, we're doing this together π
π¦ NAME π¦
rawtran β RAW to FITS converter. that's it, that's the whole vibe. your camera's weird little RAW files go in, proper astronomical FITS images come out. slay.
πΈ SYNOPSIS πΈ
rawtran [options] file(s)
literally just hand it some files and some options. iconic.
π DESCRIPTION π
so rawtran is the utility that converts raw photos β think .CR2, .CRW, MRW, NEF, RAF, etc. formats β into the general astronomical FITS image format [4]. yes, the same FITS your astro tools are obsessed with. it's giving glow-up, honestly.
the identification of the raw photo type and the decoding itself? that's all done via the DCRAW utility by D. Coffin [2]. rawtran does not do that part itself, bestie. dcraw should be available independently β so go make sure it's installed, fr fr.
this manual page summarises usage only. if you want the full lore, visit the homepage [1] for additional description. iykyk. π§
π OPTIONS π
-c[X|Y|Z|R|V|B|clear|scotopic], [Ri,Gi,Gi1,Gi2,Bi] or [plain,all] β select a colour band. pick your filter fantasy β¨-ofilename β specify an output file name. if you don't use this option, the output filename is determined from the input: any suffix like*.CR2gets replaced by*.fits. and if you wanna overwrite an existing file? precede the filename with an exclamation point (!) β yes, dramatic, we love that.--no-clobberβ do not overwrite an existing file. respectful. π«Ά-eVβ values are stored as an energy-like rather than photon-like quantity. physics girlies rise π-DRAW dark filename β use the raw photo as a dark frame. rawtran will try to convert the file to PGM format by the dcraw recommended commanddcraw -D -4 -j -t 0 file.RAWand pass it asdcraw -K file.pgm. > heads up: sometimes it can be necessary to switch-off automatic frame rotation by using the-A "-t 0"option. don't skip that if things look rotated, ok?-EFITS dark filename β use the FITS file as a dark frame. the FITS file must be previously converted asdcraw -D -4 -j -t 0 dark.RAW.-Coptions β conversion options for dcraw. default is-4 -o 5for standard photometry filters and-4 -Dfor instrumental bands. the defaults are usually satisfactory, so lowkey just leave them alone unless you know what you're doing.-Xoptions β specify options to conversion by dcraw itself. one represents default parameters:-q 3 -w. see also-A.-Aoptions β specify additional options to dcraw itself. if you passed an option with a parameter or more options, please, enclose them in quotes or apostrophes. in doubts, use-X "-v"to show a detailed description of the conversion by dcraw. very main character of you to double-check π-h,--helpβ show summary of options. the classic.--versionβ display software version.
π EXIT STATUS π
0 indicates a successful run. a non-zero value is returned when an error occurred during conversion:
1means a general error2means any RAW file(s) conversion has failed
and here's a lil plot twist: if the utility is launched without options or with the -h switch, then zero means that rawtran's internal checker can run the dcraw binary, and a non-zero value otherwise. so that zero is doing double duty, periodt.
π EXAMPLES π
produce a colour FITS and show it in xmunipack:
$ rawtran -o IMG_0666.fits IMG_0666.CR2
$ xmunipack IMG_0666.fits
a large set of RAW images can be converted as:
$ rawtran *.CR2
convert an image to be equivalent to human eye brightness sensitivity at day:
$ rawtran -c Y -o IMG_0666_Y.fits IMG_0666.CR2
convert an image to be nearly equivalent to Landolt's B filter:
$ rawtran -c B -o IMG_0666_B.fits IMG_0666.CR2
get green component of RAW:
$ rawtran -c Gi -o IMG_0666_Gi.fits IMG_0666.CR2
subtract dark frame:
$ rawtran -D IMG_DARK.CR2 IMG_0666.CR2
every single one of these? ate. π₯
π AUTHOR π
Filip Hroch <hroch@physics.muni.cz> β thank you for your service, king π
β SEE ALSO β
- [1] Rawtran homepage: http://integral.physics.muni.cz/rawtran,
- [2] Dcraw homepage: http://cybercom.net/~dcoffin/dcraw/,
- [3] http://munipack.physics.muni.cz/
- [4] http://fits.gsfc.nasa.gov/
- [5] http://integral.physics.muni.cz/fitspng
and that's the whole page, bestie π¦ this was Rawtran, dated October 2018, from the RAWTRAN(1) manual β go convert something gorgeous and tag me in the results πβ¨
π¦ where this page comes from
- debian bookworm: rawtran 1.1-1+b4 Β· GPL-3.0-or-later
- debian trixie: rawtran 1.1-1+b5 Β· GPL-3.0-or-later
- ubuntu jammy: rawtran 1.1-1build2 Β· GPL-3.0-or-later
- ubuntu noble: rawtran 1.1-1build5 Β· GPL-3.0-or-later
- ubuntu questing: rawtran 1.1-1build5
- ubuntu resolute: rawtran 1.1-1build6 Β· GPL-3.0-or-later
- ubuntu stonking: rawtran 1.1-1build6 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms