Skip to main content

Application to read MTS PRC3 files

Project description

rpc_reader

PyPI version Build Status codecov

A RPC III file is a data file conforming to the RPC III file specification developed by MTS corporation. This utility reads RPC format and store the data using Numpy arrays.

This reader does not have the capacity to read all variants specified in the documentation provided by MTS.

Installation

This program can be installed from PyPi or from Gitlab.com

# From PyPi
python -m pip install rpc-reader  

# From gitlab.com
python -m pip install git+https://gitlab.com/t8237/rpc_reader.git

Usage

Python module

import pathlib
from rpc_reader import rpc_reader

# Set path to file
rpc_file_path = pathlib.Path('rpc_file_path.prc')

# Instantiate reader object
prc_object = rpc_reader.ReadRPC(rpc_file_path)

# Import data
prc_object.import_rpc_data_from_file()

# Export data to numpy as compressed npz file
prc_object.save_npy_data_to_file()

# Get headers
headers = prc_object.get_headers()

# Get channels
channels = prc_object.get_channels()

# Get measurement data as a numpy array
data = prc_object.get_data()

Command line usage

The command line version will read the content of the rpc-file and export it as a Numpy compressed npz file.

rpc_reader path_to_file.rpc

# This will export the data to: path_to_file.npz

Version history

0.7

  • Minor cleanup of code

0.6

  • Corrected header reading
  • Allow for reading of demultiplexed data

0.5

  • Allow for multiple data types from header DATA_TYPE
  • Contributed by: Zhang Xing Jing

0.4

  • First working version with basic functionality

Contribution and bug reports

Please use this issue tracker in the on gitlab.com for issues and enhancements! rpc-reader issues

Contributors

Niklas Melin

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

rpc_reader-0.7.tar.gz (20.3 kB view hashes)

Uploaded Source

Built Distribution

rpc_reader-0.7-py3-none-any.whl (20.4 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