Skip to main content

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]}

jpg

wfs[0].offsets()[:5] #Calculate offsets
array([[-0., -0.],
       [-0., -0.],
       [-1., -1.],
       [-1.,  1.],
       [22.,  9.]])




          

Project details


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.17.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

wfslib-0.1.17-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page