Skip to main content

GUI software for viewing images, text, cine, and HDF files.

Project description

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 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 Philosophy

DatView has been developed following two key guidelines:

  • Minimize dependencies and the codebase.
  • Maximize functionality and maintainability.

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
    

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

datview-2.0.0.tar.gz (74.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datview-2.0.0-py3-none-any.whl (73.2 kB view details)

Uploaded Python 3

File details

Details for the file datview-2.0.0.tar.gz.

File metadata

  • Download URL: datview-2.0.0.tar.gz
  • Upload date:
  • Size: 74.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for datview-2.0.0.tar.gz
Algorithm Hash digest
SHA256 34ff2df92ba6f17973fe59f3f48c90e285e78de945a17c74ba335ea85b9a2a82
MD5 fe9501a9130b43dafca544398ccaae7d
BLAKE2b-256 94afec3298b51eda76121bff0e412e8e375509b03352917e2de3235f103f8ff4

See more details on using hashes here.

File details

Details for the file datview-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: datview-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 73.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for datview-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28c72ed93beb02148beb223d5f8dc9f3bbde455d0a4230df04b47bc5e7711b48
MD5 70558922ff0c1ebfe6ae60f6959b2d58
BLAKE2b-256 3b95be8a9dd6fde417e3828ddecb6c8efa68b32fd8de1d933e54d6ed83443693

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page