Read header lines with non-spectroscopic information of OOI Base32 (version 2.0.0.5) file.

file

Format

An object of class character of length 1.

Arguments

file

The name of the file which header lines are to be read from.

dec

The character used in the file for decimal points. Default is a point (.).

n

Number of lines to be read. Default is 17.

last_headerline_text

The text, that indicates the last line of the header lines and the beggining of spectroscopic information. Default is ">>>>>Begin Spectral Data<<<<<".

text

Text of header as if it was read with function readLines. If text is provided, file is ignored.

Value

A list with 2 enties:

  1. $dataA dataframe with information, that contains these variable names:
    1 Date
    2 Time
    3 Graph_Title
    4 User
    5 Spectrometer_Serial_number
    6 Spectrometer_Type
    7 ADC_Type
    8 Spectrometer_Channel
    9 software_info
    10 Integration_time
    11 Integration_time_Units
    12 Scans_averaged
    13 Boxcar_width
    14 Electric_dark_correction
    15 Time_Normalized
    16 Dual_beam_Reference
    17 Reference_Channel
    18 Temperature
    19 n_pixels_in_spectrum

  2. $last_header_line The number of the last header line

Author

Vilmantas Gegzna

Examples


# \donttest{
if (FALSE) {

 read.OOIBase32.header("MySpectra.Scope")
 read.OOIBase32.header("MySpectra.Scope")$data

}# }


## OOIBase32 Version 2.0.0.5 Data File:

#
#      OOIBase32 Version 2.0.0.5 Data File
#      ++++++++++++++++++++++++++++++++++++
#      Date: 03-04-2014, 15:00:04
#      User: Valued Ocean Optics Customer
#      Spectrometer Serial Number:
#      Spectrometer Channel: Master
#      Integration Time (msec): 5000
#      Spectra Averaged: 1
#      Boxcar Smoothing: 0
#      Correct for Electrical Dark: Enabled
#      Time Normalized: Disabled
#      Dual-beam Reference: Disabled
#      Reference Channel: Master
#      Temperature: Not acquired
#      Spectrometer Type: S2000
#      ADC Type: USB2000
#      Number of Pixels in File: 2048
#      Graph Title:
#      >>>>>Begin Spectral Data<<<<<