Reads plain text file (no header) of one of the input arrays.

read_txt(my_data, fname, var, y = -1)

Arguments

my_data

List same as the output from read_csv.

fname

String, file name.

var

String, variable name.

y

Numeric, year.

Value

List with the following properties:

$file_name

File name.

$sf

Sunshine fraction.

$tair

Air temperature.

$pn

Precipitation.

$num_lines

Number of data points.

$year

Year of data.