EIGER2CBF(1)

πŸ“¦
version 0.14.0 Β· 2 versions
, in debian bookworm

πŸŽ€ eiger2cbf β€” the bestie cut πŸŽ€

okay so real quick: this is eiger2cbf, and it lives in section 1 of the manual, aka User Commands. buckle up, it's a good one πŸ’–


πŸ’– NAME πŸ’–

eiger2cbf β€” a portable image converter built on the FabIO library that takes Eiger frames (including the ones from LIMA, yes those too) and exports them to CBF, while fully cosplaying the header of a Dectris Pilatus. it's giving fake-it-till-you-make-it and honestly? iconic behavior. πŸ‘‘


✨ DESCRIPTION ✨

here's how you summon it, bestie:

usage: eiger2cbf [-h] [-V] [-v] [--debug] [-o OUTPUT] [-m MASK] [-O OFFSET] [-D DUMMY] [--pilatus] [--dry-run] [-e ENERGY] [-w WAVELENGTH] [-d DISTANCE] [-b BEAM BEAM] [--alpha ALPHA] [--kappa KAPPA] [--chi CHI] [--phi PHI] [--omega OMEGA] [--rotation ROTATION] [--transpose] [--flip-ud] [--flip-lr] [IMAGE ...]

so what it does: portable image converter based on FabIO library to export Eiger frames (including the ones from LIMA) to CBF and mimic the header from Dectris Pilatus. that's the whole mission statement. πŸ¦‹


🫢 positional arguments

  • IMAGE β€” file with input images. and yes, you can pass more than one, go off. 🌸

πŸ’… options

  • -h, --help β€” show this help message and exit. the classic, the beloved, the "help me I forgot the flag" πŸ’€
  • -V, --version β€” output version and exit. short and sweet, no notes.
  • -v, --verbose β€” show information for each conversions. so you actually see what's happening for every single one. πŸ‘€
  • --debug β€” show debug information. for when you need the whole lore. πŸ”

πŸ‘‘ main arguments

  • -o OUTPUT, --output OUTPUT β€” output directory and filename template: eiger2cbf/frame_{index:04d}.cbf. that template is literally the default, bestie, so you know what it's gonna name your stuff if you don't say otherwise.
  • -m MASK, --mask MASK β€” Read masked pixel from this file. mask girlies stay winning. 🎭
  • -O OFFSET, --offset OFFSET β€” index offset. CrysalisPro likes indexes to start at 1, Python starts at 0, and this flag is the peace treaty between them. πŸ•ŠοΈ
  • -D DUMMY, --dummy DUMMY β€” Set masked values to this dummy value. yes it's called dummy, no we're not being mean. 🫢
  • --pilatus β€” Select an image shape similar to Pilatus detectors for compatibility with Crysalis. it's not a Pilatus, it's just dressed like one for the function. πŸ’…

🌈 optional behaviour arguments

  • --dry-run β€” do everything except modifying the file system. it's the rehearsal, not the show. absolutely the move before you commit to anything. ✨

πŸ§ͺ Experimental setup options

  • -e ENERGY, --energy ENERGY β€” Energy of the incident beam in keV. beam energy, let's go. ⚑
  • -w WAVELENGTH, --wavelength WAVELENGTH β€” Wavelength of the incident beam in ??. (that's what the page says, we're not editorializing, we're just reporting.) 🌊
  • -d DISTANCE, --distance DISTANCE β€” Detector distance in meters. meters!! not mm, not cm, meters. 🫑
  • -b BEAM BEAM, --beam BEAM BEAM β€” Direct beam in pixels x, y. two values, x then y, no cap. πŸ“

πŸŒ€ Goniometer setup

  • --alpha ALPHA β€” Goniometer angle alpha value in deg.
  • --kappa KAPPA β€” Goniometer angle kappa value in deg.
  • --chi CHI β€” Goniometer angle chi value in deg. or formula f(index)
  • --phi PHI β€” Goniometer angle phi value in deg. or formula f(index)
  • --omega OMEGA β€” Goniometer angle omega value in deg. or formula f(index) like '-180+index*0.1

like, you can hand it a plain number or a whole little formula that depends on the index. main character energy, fr fr. πŸ“


πŸŽ€ Image preprocessing (Important: applied in this order!)

okay listen, this heading is doing a LOT of shouting and it deserves to, because the order matters. do not shuffle these. πŸ™ˆ

  • --rotation ROTATION β€” Rotate the initial image by this value in degrees. Must be a multiple of 90??. so like, quarter turns only, bestie, don't get creative. πŸ”„
  • --transpose β€” Flip the x/y axis. axes said "we're switching places". πŸ”€
  • --flip-ud β€” Flip the image upside-down. πŸ™ƒ
  • --flip-lr β€” Flip the image left-right. ↔️

and the receipts, because you'll want them: return codes: 0 means a success. 1 means the conversion contains a failure, 2 means there was an error in the arguments. so 0 = slay, 1 = the conversion itself said no, 2 = you said it wrong. πŸ’€

and that's the whole page, bestie. this was eiger2cbf 0.14.0, dated November 2022 β€” go convert some frames, you've got this. 🫢✨🌸

πŸ“¦ where this page comes from