Skip to content

Instantly share code, notes, and snippets.

@DanPorter
Created August 14, 2023 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanPorter/986c8bd7eb568725bcbc057b93a856cd to your computer and use it in GitHub Desktop.
Save DanPorter/986c8bd7eb568725bcbc057b93a856cd to your computer and use it in GitHub Desktop.
Read I16 Dat Files in Python using Scisoftpy
# module load python/3
# or pip install scisoftpy
import scisoftpy as dnp
path = '/dls/i16/data/2021/mm29566-1/%d.dat'
d = dnp.io.load(path % 12345)
eta_array = d.eta
initial_eta_value = d.metadata.eta
scan_command = d.metadata.cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment