# HDF5 file previewer

A simple command line app to preview the contents of an HDF5 file in the terminal.

## Installation and usage

```bash
cargo install hdf5-previewer
hdf5-previewer rf_sample_file_.h5
```

Generates:

```txt
File: rf_sample_file.h5
----------------------------------
/
├─ /rf_data | dataset
│  ├─ H5Tget_class
│  ├─ H5Tget_offset
│  ├─ H5Tget_order
│  ├─ H5Tget_precision
│  ├─ H5Tget_size
│  ├─ computer_time
│  ├─ digital_rf_time_description
│  ├─ digital_rf_version
│  ├─ epoch
│  ├─ file_cadence_millisecs
│  ├─ init_utc_timestamp
│  ├─ is_complex
│  ├─ is_continuous
│  ├─ num_subchannels
│  ├─ sample_rate_denominator
│  ├─ sample_rate_numerator
│  ├─ sequence_num
│  ├─ subdir_cadence_secs
│  └─ uuid_str
└─ /rf_data_index | dataset
```

## More options

```bash
hdf5-previewer --help
```

## Development

```bash
cargo build
cargo update
cargo test
cargo publish
```
