Skip to content

Commit

Permalink
Merge pull request #29 from baldonib/0.5
Browse files Browse the repository at this point in the history
rameau modifications for v0.5
  • Loading branch information
charlesll authored Jul 6, 2023
2 parents 1c34064 + bbd7861 commit facef6c
Show file tree
Hide file tree
Showing 23 changed files with 23,804 additions and 61 deletions.
6 changes: 4 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Licence: see LICENCE.md

- Classification via 1D CNN and other algorithms using Keras or Pytorch

- Addition of external calibration method in rameau

- peak fitting for maps

# 0.5.0 (stable)
Expand All @@ -24,6 +22,10 @@ Licence: see LICENCE.md

- add a despiking() function

- add external calibration in rameau

- add the posibility to calibrate K coefficient(s) on another dataset of spectra

# 0.4.9

- quick fix of a bug in read_horiba function (from rampy.maps)
Expand Down
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ The following folders contain codes related to publications using Rampy:

Di Genova, D., Sicola, S., Romano, C., Vona, A., Fanara, S., & Spina, L. (2017). *Effect of iron and nanolites on Raman spectra of volcanic glasses: A reassessment of existing strategies to estimate the water content.* Chemical Geology, 475, 76-86.

S.-M. Thomas, R. Thomas, P. Davidson, P. Reichart, M. Koch-Muller, G. Dollinger, Application of Raman Spectroscopy to Quantify Trace Water Concentrations in Glasses and Garnets. American Mineralogist 2008, 93 (10), 1550–1557. https://doi.org/10.2138/am.2008.2834.

- Iron_AmMin_paper contains the supplementary material for the article:

Le Losq C., Berry A. J., Kendrick M. A., Neuville D. R. and O'Neill H. St. C. (2019) *Determination of the oxidation state of iron in Mid-Ocean Ridge basalt glasses by Raman spectroscopy.* American Mineralogist 104, doi.org/10.2138/am-2019-6887
Binary file modified examples/rameau_example/Figure1.pdf
Binary file not shown.
Binary file modified examples/rameau_example/Figure2.pdf
Binary file not shown.
Binary file modified examples/rameau_example/Figure3.pdf
Binary file not shown.
Binary file added examples/rameau_example/Figure_ext.pdf
Binary file not shown.
203 changes: 161 additions & 42 deletions examples/rameau_example/Python_treatment.ipynb

Large diffs are not rendered by default.

332 changes: 332 additions & 0 deletions examples/rameau_example/Python_treatment_ext.ipynb

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions examples/rameau_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Rameau is a set of functions and a class from the rampy library that provides a way to calculate the water content of a glass from its Raman spectrum.

At this stage, it provides access to external Raman calibrations, from the Le Losq et al. (2012) and Di Genova et al. (2017) articles.
At this stage, it provides access to external Raman calibrations, from the Le Losq et al. (2012), Di Genova et al. (2017) and Thomas et al. (2008) articles.

# INSTALLATION

Expand Down Expand Up @@ -50,13 +50,13 @@ The virtual machine will see everything in the working directory, so after you j

## Jupyter notebook or rameau.py script ?

- the Python_treatment.ipynb Jupyter notebook provides some interactive example with figures showcasing the different calibrations.
- the Python_treatment.ipynb and Python_treatment_ext.ipynb Jupyter notebooks provide some interactive examples with figures showcasing the different calibrations.

- however, the easiest usage is to work with the rameau.py script provided in this folder. This allows calling rameau directly from the terminal, providing a simple set of arguments.

## Folder prepration

- Put rameau.py or the notebook in your working directory (e.g. you can download this example directory and work in it)
- Put rameau.py or the notebooks in your working directory (e.g. you can download this example directory and work in it)

- Spectra should be in a subfolder called "raw".

Expand Down Expand Up @@ -135,3 +135,5 @@ $ python rameau.py -i dataset.xlsx -s 2018_RSES -o results.csv -l 532.0 -m predi
C. Le Losq, D. R. Neuville, R. Moretti, J. Roux, Determination of water content in silicate glasses using Raman spectrometry: Implications for the study of explosive volcanism. American Mineralogist. 97, 779–790 (2012).

D. Di Genova et al., Effect of iron and nanolites on Raman spectra of volcanic glasses: A reassessment of existing strategies to estimate the water content. Chemical Geology. 475, 76–86 (2017).

S.-M. Thomas, R. Thomas, P. Davidson, P. Reichart, M. Koch-Muller, G. Dollinger, Application of Raman Spectroscopy to Quantify Trace Water Concentrations in Glasses and Garnets. American Mineralogist 2008, 93 (10), 1550–1557. https://doi.org/10.2138/am.2008.2834.
Binary file modified examples/rameau_example/dataset.xlsx
Binary file not shown.
Loading

0 comments on commit facef6c

Please sign in to comment.