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)

conda install PIL h5py numpy
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.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

tcfile-2023.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for TCFile-2023.4.tar.gz
Algorithm Hash digest
SHA256 a8fbcb2242a18fd1631d9c0e124925c30716244920295631e375fd14102458a6
MD5 5120e25f55180816cd9ea23dc5634824
BLAKE2b-256 185c60cb56be9ea530a696e2f1e12c25c52c6b7adb16b99db3c7feae313ebb50

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tcfile-2023.4-py3-none-any.whl
Algorithm Hash digest
SHA256 529152ec1f8b427bb416fbdd47b11f79bca65cb441122e182867915509240296
MD5 4e76eb8b93520b74e0a925a1355e33be
BLAKE2b-256 9989125ae6e545fcd96f633aeb5a597cf8b7b9d9f3c05d2439df8e9c04ed63fd

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