Skip to main content

DatView

(Dat)a (View)er software

Datview_Logo


Python GUI software for folder browsing and viewing text, image, Cine, and HDF files


Motivation

For synchrotron-based tomography, users need convenient tools to view their data, typically in text, TIF, HDF, or CINE format during experiments, along with basic assessment tools such as contrast adjustment, zooming, line-profile viewing, histograms, image statistics, or percentile density. However, at synchrotron facilities, where Linux OS and open-source software are the primary tools, users often need to switch between multiple GUI applications for these tasks such as Nautilus for folder browsing, NeXpy or HDFView for HDF files, Gedit for text files, and ImageJ for image viewing.

This separation of tools is inconvenient, especially since many users are not familiar with the Linux OS. DatView provides a unified GUI for all these tasks, improving efficiency and user experience. DatView runs across operating systems.

Design

For distributing the software through Pip and Conda, the software is structured based on the RUI (Rendering-Utilities-Interactions) concept, which is a user-friendly adaptation of the MVC design pattern.

For the easiest usage, a monolithic codebase (datview.py) is provided, allowing users to simply copy the file and run it without needing to install the software through Pip or Conda, provided that their Python environment includes libraries in the requirements.txt.

Starting from version 2.0, PySide6 and pyqtgraph are used instead of Tkinter and Matplotlib to improve responsiveness and performance.

Features

  • Fast folder browsing and file listing.

    Fig1

  • Interactive viewing 1D, 2D, or 3D datasets in an HDF file. Supports ROI zooming, horizontal/vertical line-profile selection, contrast adjustment, and slicing along axis 0 and 1.

    Fig2

  • Options to display histogram, percentile density, image statistics.

    Fig3

  • View metadata in HDF or CINE files, and display text-file contents.

    Fig4

  • Export to TIF files from HDF or CINE files.

    Fig5

  • Interactive viewing of TIF files in a folder or frames of a CINE file.

  • Interactive viewing of common image formats (JPG, PNG, TIF, ...).

  • Viewing 1D or 2D datasets of an HDF file in table format.

  • Opening multiple interactive viewers simultaneously.

  • Saving a 2D array in a 3D dataset (HDF or CINE) as an image.

  • Saving the current line profile as a CSV file.

Installation

Install Miniconda, Anaconda or Miniforge, then open a Linux terminal or the Miniconda/Anaconda PowerShell prompt and use the following commands for installation.

Using pip:

pip install datview

Using conda:

conda install -c conda-forge datview

Once installed, launching Datview with

datview

Using -h for option usage

datview -h

Installing from source:

  • If using a single file:
    • Copy the file datview.py. Install python, h5py, pillow, and matplotlib
    • Run:
      python datview.py
      
  • If using setup.py
    • Create conda environment
      conda create -n datview python=3.11
      conda activate datview
      
    • Clone the source (git needs to be installed)
      git clone https://github.com/algotom/datview.git
      
    • Navigate to the cloned directory (having setup.py file)
      pip install .
      

Generating the executable application

  • Install the required Python packages in your environment: PyInstaller, H5py, Hdf5plugin, Pillow, Matplotlib

  • Use the build_exe_app.py script and run the following command:

    python build_exe_app.py
    

Metadata

Release files for datview 2.1.1

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

Source distribution (sdist)

Source distribution for datview 2.1.1
File Size Uploaded Provenance Actions
datview-2.1.1.tar.gz 81.5 kB Without provenance Details for datview-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datview 2.1.1
File Interpreter ABI Platform Actions
datview-2.1.1-py3-none-any.whl Python 3 none any Details for datview-2.1.1-py3-none-any.whl

Total release size: 158.3 kB

Release files / datview-2.1.1.tar.gz

Download URL datview-2.1.1.tar.gz
Size 81.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bd94f73dcca29255ca970d2dbea4e971a3bb9fdd5eacd9be220b72656c9732ba
BLAKE2b-256 checksum
How to use checksums
1aaf8de3531a52390fb7c6b6fe35a962460d5501bc452062312c88f86a5a5f50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / datview-2.1.1-py3-none-any.whl

Download URL datview-2.1.1-py3-none-any.whl
Size 76.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aa702df216aa6f0fe454fa1a52d46766fd118c348d56446d5a73646b094fe63
BLAKE2b-256 checksum
How to use checksums
e3c38ab0a81e969f9ca8d5ce6b55a09051e5b10e5fdef1af1c96098a43cb9eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for datview 2.1.1

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.

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