GithubHelp home page GithubHelp logo

juliankarlbauer / istra2py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonashund/istra2py

0.0 0.0 0.0 13.84 MB

Read hdf5 files exported from Istra4D (Version 4.3.0.1) digital image correlation with python.

Python 100.00%

istra2py's Introduction

istra2py

Read hdf5 files exported from Istra4D (Version 4.3.0.1) digital image correlation with python.

Install

  • Install Python (e.g. Install Anaconda)
  • Install package
    • Non-development mode python3 setup.py install
  • Remove package
    • Non-development mode python3 setup.py --uninstall

Example

Input

import istra2py

r = Reader(
    path_dir_acquisition=os.path.join("data", "acquisition"),
    path_dir_export=os.path.join("data", "export"),
    verbose=True
)
r.read(identify_images_export=True)

print("\nr.__dict__.keys()")
print(r.__dict__.keys())
print("\nr.acquisition.__dict__.keys()")
print(r.acquisition.__dict__.keys())
print("\nr.export.__dict__.keys()")
print(r.export.__dict__.keys())

Output

Searched dir=data/acquisition

Found the following files
['series_step_0.hdf5',
 'series_step_1.hdf5',
 'series_step_10.hdf5',
 'series_step_11.hdf5',
 'series_step_2.hdf5',
 'series_step_3.hdf5',
 'series_step_4.hdf5',
 'series_step_5.hdf5',
 'series_step_6.hdf5',
 'series_step_7.hdf5',
 'series_step_8.hdf5',
 'series_step_9.hdf5']


Sorted files are
['series_step_0.hdf5',
 'series_step_1.hdf5',
 'series_step_2.hdf5',
 'series_step_3.hdf5',
 'series_step_4.hdf5',
 'series_step_5.hdf5',
 'series_step_6.hdf5',
 'series_step_7.hdf5',
 'series_step_8.hdf5',
 'series_step_9.hdf5',
 'series_step_10.hdf5',
 'series_step_11.hdf5']


Extracted attributes:
{'Images': '.images',
 'Traverse displacement': '.traverse_displ',
 'Traverse force': '.traverse_force'}

Indices of basics are: [nbr_files, nbr_x, nbr_y, nbr_components] with
nbr_files =  12
nbr_pix_x =  504
nbr_pix_y =  496

Searched dir=data/export

Found the following files
['series_step_0.hdf5',
 'series_step_1.hdf5',
 'series_step_10.hdf5',
 'series_step_11.hdf5',
 'series_step_2.hdf5',
 'series_step_3.hdf5',
 'series_step_4.hdf5',
 'series_step_5.hdf5',
 'series_step_8.hdf5',
 'series_step_9.hdf5']


Sorted files are
['series_step_0.hdf5',
 'series_step_1.hdf5',
 'series_step_2.hdf5',
 'series_step_3.hdf5',
 'series_step_4.hdf5',
 'series_step_5.hdf5',
 'series_step_8.hdf5',
 'series_step_9.hdf5',
 'series_step_10.hdf5',
 'series_step_11.hdf5']


Extracted attributes:
{'Coordinates': '.x',
 'Displacements': '.u',
 'Strains': '.eps',
 'Traverse displacement': '.traverse_displ',
 'Traverse force': '.traverse_force'}

Indices of basics are: [nbr_files, nbr_x, nbr_y, nbr_components] with
nbr_files =  10
nbr_x =  50
nbr_y =  49


r.__dict__.keys()
dict_keys(['verbose', 'path_dir_acquisition', 'path_dir_export', 'acquisition', 'export', '_available_positions'])

r.acquisition.__dict__.keys()
dict_keys(['verbose', 'path_dir', '_file_ending', '_file_names_unsorted', '_file_names', 'paths_files', 'nbr_files', 'traverse_force', 'traverse_displ', 'images'])

r.export.__dict__.keys()
dict_keys(['verbose', 'path_dir', '_file_ending', '_file_names_unsorted', '_file_names', 'paths_files', 'nbr_files', 'traverse_force', 'traverse_displ', 'x', 'u', 'eps', 'image_indices', 'images'])

istra2py's People

Contributors

jonashund avatar juliankarlbauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.