Skip to content

A collection of MATLAB scripts and functions for the processing of data from the TriOS Online Hyperspectral Integrating Cavity Absorption Meter (OSCAR)

Notifications You must be signed in to change notification settings

JochenWollschlaeger/OSCAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The MATLAB (The MathWorks, USA) code presented here is for calculating absorption coefficient spectra based on the light intensity spectra provided by the Online Hyperspectral Integrating Cavity Absorption Meter (OSCAR, TriOS GmbH, Germany).

The calculations are based on the equations published in: Kirk, J.T., 1997. Point-source integrating-cavity absorption meter: theoretical principles and numerical modeling. Appl. Opt. 36, 6123–6128. Leathers, R.A., Downes, T.V., Davis, C.O., 2000. Analysis of a point-source integrating-cavity absorption meter. Appl. Opt. 39, 6118–6127. Röttgers, R., Schönfeld, W., Kipp, P.-R., Doerffer, R., 2005. Practical test of a point-source integrating cavity absorption meter: the performance of different collector assemblies. Appl. Opt. 44, 5549–5560.

Short instructions for software use:

  1. Unzip "OSCAR_Code.zip" to retrieve the MATLAB scripts, the "Subfunctions" folder, and the "User_Input_Template.xlsx" file.

  2. Create a folder "Rawdata" in the same folder where the scripts are.

  3. Put the "RAW_DARK" and the corresponding "RAW_LIGH" files extracted from the .tar file downloaded from the OSCAR in that folder (either as .dat or .csv). Rename files if necessary (e.g. in case you want to process datasets covering several days).

  4. Copy the "User_Input_Template.xlsx" and rename the copy into "User_Input.xlsx".

  5. Fill out the spreadsheet with the necessary information according to the instructions given in the file and put it in the same location where the scripts are.

  6. Read the instructions in script "A_Import_OSCAR_Data", make the appropriate changes in the "Parameters" section, and execute the script.

  7. Check the result files and make changes, if required (e.g. delete wrong measurements or give temperature and salinity information in the appropriate columns).

  8. Read the instructions in script "B_Calculate_Reflectivity", make the appropriate changes in the "Parameters" section, and execute the script.

  9. Check the result file and make changes, if necessary.

  10. Read the instructions in script "C_Calculate_Absorption", make the appropriate changes in the "Parameters" section, and execute the script.

  11. Check the result file.

The script "ExampleData_Figures" creates figures from the example data (different for the two datasets) for checking if everything worked correctly. The dotted lines in the plots are the minimum/maximum values of the variable which have been calculated using the standard deviation of repeated measurements into account.

For questions or feedback contact Jochen Wollschläger, University of Oldenburg, Institute of Biology and Chemistry of the Marine Environment (ICBM) E-Mail: jochen.wollschlaeger@uol.de

About

A collection of MATLAB scripts and functions for the processing of data from the TriOS Online Hyperspectral Integrating Cavity Absorption Meter (OSCAR)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published