https://github.com/franckalbinet/uhina
Converts 1D infrared spectra to 2D (Continuous Wavelet Transform) representations.
https://github.com/franckalbinet/uhina
infared-spectroscopy signal-processing wavelets
Last synced: 4 months ago
JSON representation
Converts 1D infrared spectra to 2D (Continuous Wavelet Transform) representations.
- Host: GitHub
- URL: https://github.com/franckalbinet/uhina
- Owner: franckalbinet
- License: apache-2.0
- Created: 2024-09-17T15:04:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-19T08:52:49.000Z (over 1 year ago)
- Last Synced: 2025-08-20T21:22:31.783Z (10 months ago)
- Topics: infared-spectroscopy, signal-processing, wavelets
- Language: Jupyter Notebook
- Homepage: https://fr.anckalbi.net/uhina/
- Size: 24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Uhina
> Converts 1D infrared spectra to 2D (Continuous Wavelet Transform)
> representations.
## Developer Guide
If you are new to using `nbdev` here are some useful pointers to get you
started.
### Install uhina in Development mode
``` sh
# make sure uhina package is installed in development mode
$ pip install -e .
# make changes under nbs/ directory
# ...
# compile to have changes apply to uhina
$ nbdev_prepare
```
## Usage
### Installation
Install latest from the GitHub
[repository](https://github.com/franckalbinet/uhina):
``` sh
$ pip install git+https://github.com/franckalbinet/uhina.git
```
or from [pypi](https://pypi.org/project/uhina/)
``` sh
$ pip install uhina
```
### Documentation
Documentation can be found hosted on this GitHub
[repository](https://github.com/franckalbinet/uhina)’s
[pages](https://franckalbinet.github.io/uhina/). Additionally you can
find package manager specific guidelines o
[pypi](https://pypi.org/project/uhina/) respectively.
## How to use
``` sh
usage: uh [-h] [--img_dir IMG_DIR] [--dataset DATASET] [--spectra_type SPECTRA_TYPE] [--analytes ANALYTES] [--n_samples N_SAMPLES] [--batch_size BATCH_SIZE]
src dir_out
Convert spectra to wavelet images.
positional arguments:
src Source file
dir_out Output root directory
options:
-h, --help show this help message and exit
--img_dir IMG_DIR Image directory (default: img)
--dataset DATASET Dataset to use (default: ossl)
--spectra_type SPECTRA_TYPE Spectra type to use (default: mir)
--analytes ANALYTES Analytes to use (default: k.ext_usda.a725_cmolc.kg)
--n_samples N_SAMPLES Number of samples to use
--batch_size BATCH_SIZE Batch size to use (default: 10)
```