NPZ Viewer

from hyperviz import make_viewer
from fairdatanow import data_now

url = 'https://laboppad.nl/ukiyo-e-world' 

toml_txt = '''
# here are the 10 corresponding spectral data cubes processed by Gauthier and Tessa 
[data.npz] 
RV-1-4468-544 = ".*RIS/interim/.*RV-1-4468-544.*[.]npz"
RV-1-4469-484 = ".*RIS/interim/.*RV-1-4469-484.*[.]npz"
RV-1-4469-58 = ".*RIS/interim/.*RV-1-4469-58.*[.]npz"
RV-1-4469-x6 = ".*RIS/interim/.*RV-1-4469-x6.*[.]npz"
RV-1-4469Q = ".*RIS/interim/.*RV-1-4469Q.*[.]npz"
RV-1-4470-12 = ".*RIS/interim/.*RV-1-4470-12.*[.]npz"
RV-1-4470-27 = ".*RIS/interim/.*RV-1-4470-27.*[.]npz"
RV-360-2345g = ".*RIS/interim/.*RV-360-2345g.*[.]npz"
RV-360-2359-2 = ".*RIS/interim/.*RV-360-2359-2.*[.]npz"
RV-360-6886 = ".*RIS/interim/.*RV-360-6886.*[.]npz"
'''

data = data_now(url, toml_txt)

# %%
make_viewer(data)

API

The following API reference is generated from the public functions and their docstrings in hyperviz.npz_viewer.

create__simple_app(data: dict) -> dash.dash.Dash

No documentation available.

make_viewer(data: dict) -> None

Launch an interactive viewer for hyperspectral NPZ data.

Parameters
----------
data
    Mapping with an ``npz`` entry. Each key below ``npz`` identifies an
    object and maps to a sequence whose first item is the path to its NPZ
    file. Each NPZ file must contain an ``image`` array.

Notes
-----
This function starts a Dash development server and blocks until that
server is stopped.