Skip to main content

Package to load measurement from Cohaerentia Raman DTS

Project description

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

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

readerraman-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

readerraman-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file readerraman-0.1.0.tar.gz.

File metadata

  • Download URL: readerraman-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Windows/11

File hashes

Hashes for readerraman-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4ccad20405792287d25ea2b82ec812abc9aac62df5318dcc543c814a5bdab98
MD5 aa0be0c4ac50bc0e7726693706f452f9
BLAKE2b-256 d9809b0a4fe90c66fb0470b7f883487e74f6c986edc05cc71f6d692b7b767a97

See more details on using hashes here.

File details

Details for the file readerraman-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: readerraman-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Windows/11

File hashes

Hashes for readerraman-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc4da8bc4d30eeeaa2d99c0135b83dd6e2b9e20fd0f6b36f3678c9232fbd6eb
MD5 a62439e14f4a7c201bc9a2811d71d5ec
BLAKE2b-256 12936cf6b3e5cead693fa2b622dd1c1ea371f9759e8e957de543fe8f597165cf

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