~/talk

Decoding Binary Files - a Primer (specifically optical spectra for analysis)

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [data-science]
links:none on file
slides:none on file

Uses Python (struct, pandas, numpy, glob) and Jupyter to reverse‑engineer spectrophotometer binaries by comparing exported CSVs as ground truth, finds little-endian float32 spectral values beginning at start at byte 120 and continuing to file end (files ~1.3k bytes, last value near byte 1320), reconstructs wavelengths with np.linspace, handles reversed order and float rounding, decodes about six instruments, and the parsed spectra matches CSV exactly, producing a working parser for production analysis.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:48Text vs binary files
  3. 3:55Binary file properties
  4. 5:19Spectrophotometer data overview
  5. 6:50Examining binary files
  6. 9:01Loading data in Python
  7. 11:09Detecting endianness and data type
  8. 13:41Scanning binary data
  9. 15:45Finding wavelength patterns
  10. 17:14Decoding transmittance values
  11. 18:42Applying pattern to other files
  12. 20:29Verifying decoded data
  13. 20:52Binary file structure notes
  14. 21:35Q&A session begins
  15. 21:56Advantages of binary over CSV
  16. 23:21Challenges faced
  17. 26:14Handling encryption in files
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.