Skip to main content

OpenOSC: OSC file reader

Installation

pip install open-osc

Dependencies

No dependencies. This library only uses Python standard library for normal use.

Capability

The software can decode different sections of the OSC file, not just the EBSD data. The software can decode the following sections:

  • EBSD data (Euler angles, X, Y, ...)
  • Hough points
  • EDS (ROI integration) data, if available
  • ROI (region of interest) data, if available. Basically high resolution detector signal data in 8 bit grey scale image.
  • Phases
  • Header

This software does not decode all the fields in the OSC file. It only decodes the data identified by the authors/contributors. Use the software at your own risk.

Usage

from open_osc import load_osc

# Load
osc_file = load_osc('path/to/file.osc')

# Interact with the decoded data
ebsd_data = osc_file.data_as_dictionary()
euler1 = ebsd_data['phi1']
euler2 = ebsd_data['phi']
euler3 = ebsd_data['phi2']

Stage

  • The software can decode most publicly available OSC files.
  • Not ready for production. Use at your own risk.

Developments

Known bugs

  • Inference of NCOL_EVEN and NCOL_ODD is sometimes faulty.

Todo

  • Identify the field for the elastic modulus
  • Decode the hough indexing parameters.
  • Identify the header fields. It is largely unknown.

Bug / Incompatibility Reporting

If you encounter an incompatibility with the OSC file, please open a new issue and attach the following files:

  • The *.OSC file in question.
  • The corresponding *.ANG file, directly exported from the manufacturer software.

To ensure proper testing, submitted files may be uploaded to the Git repository and released under the same license as this repository. (MIT) as this repository. Please submit the file only if you agree to this condition, and the file you submit MUST be owned by you, or you have the right to distribute/license it. If possible, please submit a small osc file (< 3 MB).

Please also provide the following information:

  • The manufacturer-software version.
  • The instrument used to measure the data (electron microscope, EBSD detector, ...).
  • If applicable, the context of the data. In the case of someone who might want to use the data for their own purposes (the MIT licence does not prohibit off-purpose use).

Acknowledgement

Test data sources

Test datasets are not yet included in this repository, though they will be bundled in ./tests/data/ for testing purposes. These files will originate either from our research group or from external sources under compatible licenses (e.g., MIT, Public Domain), with *.bibtex files alongside them detailing original sources and licenses.

Funding

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) as part of Collaborative Research Centre CRC 1394 - Structural and Chemical Atomic Complexity - From Defect Phase Diagrams to Material Properties (project number 409476157) and under the National Research Data Infrastructure – NFDI 38/1 (project number 460247524)

Metadata

Release files for open-osc 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for open-osc 0.0.0
File Size Uploaded Provenance Actions
open_osc-0.0.0.tar.gz 12.4 kB Without provenance Details for open_osc-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-osc 0.0.0
File Interpreter ABI Platform Actions
open_osc-0.0.0-py3-none-any.whl Python 3 none any Details for open_osc-0.0.0-py3-none-any.whl

Total release size: 23.0 kB

Release files / open_osc-0.0.0.tar.gz

Download URL open_osc-0.0.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
abbeca1dc17d93f12a3eb1dee6faae1deb4088698798a0ac92ea845de3f5e31e
BLAKE2b-256 checksum
How to use checksums
4e7e6f707b65d4145f9665a37cfa585a1b52e36a72c3964879ccaeabb8000a02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release files / open_osc-0.0.0-py3-none-any.whl

Download URL open_osc-0.0.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df726ee773b46dd6106e1952542dfc625bbdb687b213556e1c2fc2d95b2dba5b
BLAKE2b-256 checksum
How to use checksums
e76aca3445669fd8e207494fc9b0b881dca2d41e3bc72116531d0cbc46b3a43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Security for open-osc 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page