Skip to main content

Preview nifti images on the terminal

Project description

niicat

This is a tool to quickly preview nifti images on the terminal. This can be helpful if you are working on a remote server via SSH and do not have a -X connection. It uses libsixel to display the images.

Install:

pip install niicat

Usage:

niicat T1.nii.gz

Possible problems

If nothing is displayed check if your terminal supports sixel.

You might also encounter the following error message:

ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type

This is a known problem when using libsixel-python. In this case try using niicat with the option -ic if you are using iterm2 (this will use imgcat from iterm2) or with the option -lb (this will use libsixel-bin which can be installed via sudo apt install libsixel-bin).

This code is based on the following code:

niipre

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

niicat-0.3.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

niicat-0.3.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file niicat-0.3.1.tar.gz.

File metadata

  • Download URL: niicat-0.3.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for niicat-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2d790dfa89da1cb42b24ebeaf40183d3184f9f93de5d9be5de547964dc6ecf4b
MD5 e9fb665170c5b62ac1844b1780d0a28d
BLAKE2b-256 23f5ab1ba0c94baf571bdba38747e94404e566bef6b4562e5e1aedc3157b779c

See more details on using hashes here.

Provenance

File details

Details for the file niicat-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: niicat-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for niicat-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58d7c6d10f05bb3783d4ce97b3c3741dee723700007db679f37c7aae9315bf48
MD5 ba00ef3482c76da8795e2c8c6cc0bd83
BLAKE2b-256 fd11d2844b2c162931d402f6c8f46d7df0eb45d0ca014001da9ed80b3f839b01

See more details on using hashes here.

Provenance

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