Programming module for wave front data processing
Project description
wfslib is open library for wave front data processing:
- different data type usage (hfd, bim, numpy);
- automatic geometry calculation;
- offsets calculation;
- settings-tools for manage yours data.
Example of wfslib work
from wfslib.wfs import WFSData
wfs = WFSData('../data/subpixel_test.h5', dataset_name = 'wfss/n0/detector') #Load data
p = wfs.geometry.options #Geometry options
print(p)
wfs.reference = 8
#Change geometry options
wfs.geometry.set_options(shift=(-p['start_point'][0]+1,-p['start_point'][1]+1), border = 0, cell_width = p['cell_width']-1)
#Visualization
wfs.show_geometry()
{'border': 4.0, 'cell_width': 110.0, 'start_point': [168, 131]}
wfs[0].offsets()[:5] #Calculate offsets
array([[-0., -0.],
[-0., -0.],
[-1., -1.],
[-1., 1.],
[22., 9.]])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wfslib-0.1.200.tar.gz
(9.4 kB
view hashes)
Built Distribution
wfslib-0.1.200-py3-none-any.whl
(11.1 kB
view hashes)