Add anger camera laptop data file conversion to jpeg image inputs

INPUT

The input will be the data/anger-camera-laptop files.

  • 210_0.dat - collimator
  • slits2.dat - open slits

Here is a simple script to read + plot the data in data/anger-camera-laptop if that helps:

import sys
import matplotlib
from matplotlib import pyplot as plt
import numpy

matplotlib.use('TkAgg')

filename = sys.argv[1]

data = numpy.fromfile(filename,dtype=numpy.uint32).reshape(512,512)
print(data)

plt.imshow(data, interpolation='nearest')
plt.show()

Which should give you images like the following: image

OUTPUT The output should match the JPEG formats of the brave-image-generator tool Examples: https://code.ornl.gov/dnp-computational-project/instrument/-/tree/main/data/lysozyme_t4_wl_2_4_t_3600?ref_type=heads

Edited by McDonnell, Marshall