Skip to main content

Python package for handling TCF data. It works with Tomcube data

Project description

TCFile python package

Basic image processing tools of tomocube data.

Installation

After downloading the repository, execute the following command in the repository;

pip install .

Note

It is not for normal users, and API is not fixed. Please use this package with full understanding. Any suggestions and comments are welcome!

Use case

from TCFile import *

tcfile = TCFile('test.TCF','3D') # for now, it only read 3D RI data
print(f"number of snapshots : {len(tcfile)}")

## Usage 1: handling a data for each snapshot
data = tcfile[0]
print(f"shape of data : {data.shape}")
# or
for data in tcfile:
    # do some operations on the data ...
    pass

Test (for development and contribution)

pytest TCFile/tests/TCFhandler.py

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

TCFile-2023.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

tcfile-2023.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file TCFile-2023.2.tar.gz.

File metadata

  • Download URL: TCFile-2023.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for TCFile-2023.2.tar.gz
Algorithm Hash digest
SHA256 017029b8f6c306d067fdd48143950ec6c648d3e3aa052f9cceb552bc19eae96e
MD5 8a639716df96501a1516523d83b86109
BLAKE2b-256 08fa045f8f46c4b68cb9ad68a6eb5de1bb9955bab7013db7fc5055290406d4a2

See more details on using hashes here.

File details

Details for the file tcfile-2023.2-py3-none-any.whl.

File metadata

  • Download URL: tcfile-2023.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for tcfile-2023.2-py3-none-any.whl
Algorithm Hash digest
SHA256 483592194934787ad64ff07960d65d4716afac69cfb17ef0b6133d407f4d1afa
MD5 21a9cd4c1f394673ea9ac1e630857be1
BLAKE2b-256 8d9cd7e6b26dbece3ec8ffe1dd410f01f060cb77308d5d78bdee54cf51ab13c0

See more details on using hashes here.

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