CIF2HKL(1)
π CIF2HKL β okay bestie, let's talk crystallography
so like. this is cif2hkl, and it lives in section 1 of the manual (User Commands, if you're fancy β¨). it is a whole little icon and i'm obsessed with it.
β¨ NAME β¨
cif2hkl β literally just cif2hkl π (yes the name is the name, we love a minimalist queen)
π¦ SYNOPSIS π¦
cif2hkl [options][-o outfile] file1 file2 ...
she takes files, plural, she takes options, and if you want you can throw an output file at her with -o. that's the whole vibe.
πΈ DESCRIPTION πΈ
the action, periodt: she reads a CIF/CFL/SHX/PCR crystallographic description...
...and generates a HKL F^2 reflection list. that's it. that's the serve. π
π Input
file1...β one or more input files, in CIF, PCR, CFL, SHX, INS, or RES format.
and how does she know which one you handed her? the file format is determined from its extension, no cap:
.CIFβ Crystallographic Information File.PCR,.CFLβ FullProf file.SHX,.INS,.RESβ ShelX file
π Output
a file with a readable header, and a reflection list with these columns:
[ H K L Multiplicity Sin(Theta/Lambda) d_spacing |F|^2 ]
she's organized. she's giving spreadsheet but make it crystal. π
π OPTIONS π
one bullet per flag, all of them, nothing skipped, because we respect the full menu:
--help,-hβ show this help. the classic "help me help you" moment π«Ά--version,-vβ display program version. for when you need to know exactly which queen you're dealing with.--out FILE,-o FILEβ specify the name of the next output file. the default behavior? she just adds.hklonto the initial file name. lowkey effortless. β¨--lambda LAMBDA,-l LAMBDAβ set the incoming probe wavelength, in [Angs]. the default is0.5. write that down π--powder,-pβ generate a list of unique HKL reflections, for powders. this is the default, so if you do nothing, this is what you get π--xtal,-xβ generate a list of all HKL reflections, for single crystals. main character energy, every reflection gets its moment.--mode MODE,-m MODEβ generate structure factors for a given probe, where MODE is:NUCβ neutron (default)XRAβ xraysELEβ electrons
--verboseβ display processing details. she will narrate her entire process and honestly? we're listening.--no-output-filesβ just read the CIF/CFL/ShelX file, purely for checking. no files written, just vibes and validation π
β EXAMPLE β
steal this, run this, slay:
./cif2hkl --powder --mode NUC -o CaF2.laz CaF2.cfl
heads up bestie: that command is written exactly as it appears β--powder,--mode NUC,-o CaF2.laz, and the inputCaF2.cfl. no renaming, no "improving", just copy it character for character. π―
π§ ok that's the whole page, bye π§
this was cif2hkl 1.4.7, from March 2026, and honestly? iconic. go refract something. π
π¦ where this page comes from
- ubuntu stonking: cif2hkl 1.4.7+ds1-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms