ReadSpectra: ReadSpectra

Description Usage Arguments Value Author(s) Examples

Description

Read Spectra from ASCII files and list them

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ReadSpectra(filenames, WLname = NULL, WLpos = NULL, Ename = NULL, 


    E2name = NULL, dcEname = NULL, Lname = NULL, dcLname = NULL, 


    Epos = NULL, E2pos = NULL, dcEpos = NULL, Lpos = NULL, dcLpos = NULL, 


    ...)

Arguments

filenames

character value or vector: names of the file(s) to be opened

WLname

character value: string of the name in the ASCII file of the wavelength vector, if any

WLpos

numeric value: value of the position (number of column) in the ASCII file of the wavelength vector, if any

Ename

character value: string of the name in the ASCII file of the solar radiance vector, if any

E2name

character value: string of the name in the ASCII file of the second solar radiance vector (in case of sandwicth acquisition), if any

dcEname

character value: string of the name in the ASCII file of the dark current vector acquired with same integration time of solar irradiance, if any

Lname

character value: string of the name in the ASCII file of the reflected radiance vector, if any

dcLname

character value: string of the name in the ASCII file of the dark current vector acquired with same integration time of reflected radiance vector, if any

Epos

numeric value: value of the position (number of column) in the ASCII file of the solar radiance vector, if any

E2pos

numeric value: value of the position (number of column) in the ASCII file of the second solar radiance vector (in case of sandwicth acquisition), if any

dcEpos

numeric value: value of the position (number of column) in the ASCII file of dark current vector acquired with same integration time of solar irradiance, if any

Lpos

numeric value: value of the position (number of column) in the ASCII file of the the reflected radiance vector, if any

dcLpos

numeric value: value of the position (number of column) in the ASCII file of dark current vector acquired with same integration time of reflected irradiance, if any

...

Further arguments to be passed to read.table.

Value

list containing all the info specified in the opened file(s).

Author(s)

Tommaso Julitta, Mirco Migliavacca, Thomas Wutzler

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  





path<-"..."


#list files 


list_files<-list.files(path = path,pattern = "h4",full.names = TRUE)


#open an list them in a single file


dat<-ReadSpectra(filenames = list_files,WLpos = 1,Epos = 2,Lpos = 3,header =TRUE, sep=";")

tommasojulitta/FieldSpectroscopyCC documentation built on May 31, 2019, 6:19 p.m.