Reconstruction of sample FTIR data
Project description
License
copyright Manuel Marschall (PTB) 2020
This software is licensed under the BSD-like license:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
DISCLAIMER
This software was developed at Physikalisch-Technische Bundesanstalt (PTB). The software is made available "as is" free of cost. PTB assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, safety, suitability or any other characteristic. In no event will PTB be liable for any direct, indirect or consequential damage arising in connection
Using this software in publications requires citing the following paper
Compressed FTIR spectroscopy using low-rank matrix reconstruction DOI: https://doi.org/10.1364/OE.404959
References
This repository contains the python code that is used in the paper
- [1] Compressed FTIR spectroscopy using low-rank matrix reconstruction, Optics Express Vol. 28, Issue 26, pp. 38762-38772 (2020)
Motivation
Reducing measurement times and datasets by implementing reconstruction methods is a usual mathematical tool. In this project we develop a regularized low-rank matrix recovery algorithm to account for smoothness, sparsity and low-rank properties of the given data.
Installation
To run the library one needs a $\geq$ python 3.6 installation with the python packages
- numpy
- scipy
- matplotlib
Installation using pip
Install via the python package manager pip
using
pip install compressedftir
Basic Python installation
Guides to install python under Linux, Windows and Mac can be found here: https://realpython.com/installing-python/
Quick guide for Python under Windows:
-
Download Python https://www.python.org/downloads/release/python-382/ (bottom of the page: "Windows x86-64 executable installer")
-
Install Python using the installer and check "Add Python x.x to Path"
-
Run a terminal, e.g. CMD
-
Check the installation by typing
python
a command prompt should appear such as
C:\Users\Marschall\Projects\CompressedFTIR>python Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
-
Close the Python prompt using
exit()
-
Install dependencies
python -m pip install numpy scipy matplotlib
Implementation details
Some features and important files are mentioned in the following
paper_leishmania/run_recon.py
is a run script and contains a dummy 2D example using an l-curve criterion for choosing the regularization parameter in a smoothed matrix reconstruction approach. You should get started here. Other scripts in this directory require additional data that are not available online.compressedftir.datareader
implements a variety of data formats and can be adapted to your file formatcompressedftir.reconstruction.lowrank
implements the code that is described in the paper [1]
Contact
Please contact manuel.marschall@ptb.de
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file compressedftir-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: compressedftir-0.0.2-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40debd73b7e9addfcc600d108f6f8e9bf672131027647d782ffacb372388212b |
|
MD5 | 9012dbb3cab31daf1bade8d8bb36e6a0 |
|
BLAKE2b-256 | c8f18da2135733b4c768ae239418734d6db246e25d28dc101ec10b840e912bb2 |