Page History
...
Code Block |
---|
[ImgAlgos.PixCoordsProducer] source = CxiDs1.0:Cspad.0 key_out_area = pix_area key_out_ix = pix_ix key_out_iy = pix_iy print_bits = 255 |
In python code these arrays can be obtained with evtenv.calibStore().get(...) method:
Code Block |
---|
env = ds.env() Xcls = env.calibStore() ... A = evt.get(psana.ndarray_float64int16_13, psana.Source('DetInfo(CxiDs1.0:Cspad.0)'), 'x-pix-coords') cspad_ndarr').flatten() X Y = evtcls.get(psana.ndarray_float64_1, psana.Source('DetInfo(CxiDs1.0:Cspad.0)'), 'yx-pix-coords') Y A = evtcls.get(psana.ndarray_int16float64_31, psana.Source('DetInfo(CxiDs1.0:Cspad.0)'), 'cspad_ndarry-pix-coords').flatten() Area = evtcls.get(psana.ndarray_float64_1, psana.Source('DetInfo(CxiDs1.0:Cspad.0)'), 'pix_area') iX = evtcls.get(psana.ndarray_uint32_1, psana.Source('DetInfo(CxiDs1.0:Cspad.0)'), 'pix_ix') iY = evtcls.get(psana.ndarray_uint32_1, psana.Source('DetInfo(CxiDs1.0:Cspad.0)'), 'pix_iy') // if needed, the path to "geometry" calibration file can be also extracted as: path_nda = cls.get(psana.ndarray_uint8_1, src, 'geometry-calib') path = ''.join(map(chr, path_nda)) if path_nda is not None else 'N/A' |
Their shape=(32*185*388,) = (2296960,)
...
Overview
Content Tools