Spectrometer data processing library from field devices.
- ASD field spectrometer
After the environment is set up and the library installed, it provides the below listed command line interfaces.
A detailed help for each command is provided when giving the --help
option.
All programs will prompt for required parameters if not given with the call.
Calculate the snow albedo from a sequence of ASD measurements.
asd_albedo -in /path/to/measurements/ -fp file_prefix -up 0 -down 10
Calculate the reflectance from surface and white reference ASD measurements.
asd_reflectatnce -in /path/to/measurements/ -fp file_prefix -rs 0 -wrs 10
Utility to inspect a sequence of white reference measurements.
asd_white_reference -in /path/to/measurements/ -fp file_prefix -wrs 10
This library was developed with a conda
environment,
using the supplied environment.yml and
environment_dev.yml.
Follow the instructions of the
official documentation
to get started with conda
.
To use the command line interfaces, the execution environment needs to be set up using the environment.yml:
conda create --file environment.yml
For development and running the tests, both .yml
(environment.yml and environment_dev.yml)
files need to be used for setup:
conda create --file environment.yml --file environment_dev.yml
This step needs to be done for both, execution and development environment.
- Clone the repository locally
- Change path to inside the library
cd spectrod-dp
- Install the Library
pip install -e .
All commands are covered by a test suite under the test directory. Make sure that all tests pass once you completed code changes.
Running the test suite from inside the project root directory
pytest tests/