Reader Raman
Pacchetto per lettura e visualizzazione delle misure salvate da software per sensore DTS Raman.
Installazione
Tramite pip:
pip install readerraman
Utilizzo
Per prima cosa è necessario caricare il necessario dai due moduli di lettura e visualizzazione:
from ReaderRaman.reader import Single, Multiple
Misura Singola
Lettura di singola misura da un singolo file di tipo json.
singolo = Single("data/2025-09-11_10-10-21,202_CohDTS_50ns_480Kavg_25C.json")
Si può fare plot:
singolo.plot().show()
singolo.plot(to_plot='apd_1', title='Prova').show()
e con parametro to_plot si può scegliere quale dato visualizzare (default 'temperature', altrimenti apd_1,apd_2,ratio).
Misure multiple in una cartella
Lettura di tutti i file di tipo profilo in una cartella, contenente files di tipo json:
from datetime import datetime
folder = 'data/profiles/'
multiple = Multiple(folder,)
multiple = Multiple(folder, n_measure=10)
multiple = Multiple(folder, n_measure=10, start_measure=5)
multiple.plot()
dove il comando di plot è analogo a quello per singola misura.
Inoltre è possibile filtrare per posizione o direttamente plottare andamento nel tempo di una lista di posizioni:
array, real_position_m, index_position = multiple.filter_by_position(1000,to_filter='temperature')
multiple.plot_positions_vs_time(1000,to_plot='temperature').show()
multiple.plot_positions_vs_time([1000,3000],to_plot='apd_1').show()
File hdf5
Si possono esportare in un singolo file h5 tutte le misure lette:
multiple.export_to_h5("misure.h5")
E poi possono essere ricaricate con:
from ReaderRaman.reader import MultipleH5
multiple = MultipleH5(filename="misure.h5")
e l'oggetto multiple potrà essere utilizzato come quello generato dai file json in una cartella.
TODO
- Permettere di ricalcolare temperatura e ratio fornendo coefficienti differenti.
- Compensare perdite
Metadata
Release files for readerraman 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| readerraman-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for readerraman-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| readerraman-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for readerraman-0.1.0-py3-none-any.whl |
Total release size: 10.6 kB
Release files / readerraman-0.1.0.tar.gz
| Download URL | readerraman-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4ccad20405792287d25ea2b82ec812abc9aac62df5318dcc543c814a5bdab98
|
|
BLAKE2b-256 checksum How to use checksums |
d9809b0a4fe90c66fb0470b7f883487e74f6c986edc05cc71f6d692b7b767a97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.9 Windows/11
|
Release files / readerraman-0.1.0-py3-none-any.whl
| Download URL | readerraman-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbc4da8bc4d30eeeaa2d99c0135b83dd6e2b9e20fd0f6b36f3678c9232fbd6eb
|
|
BLAKE2b-256 checksum How to use checksums |
12936cf6b3e5cead693fa2b622dd1c1ea371f9759e8e957de543fe8f597165cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.9 Windows/11
|
Security for readerraman 0.1.0
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.