read_phenocam: Read PhenoCam time series data

View source: R/read_phenocam.r

read_phenocamR Documentation

Read PhenoCam time series data

Description

Reads PhenoCam data into a nested list, preserving header data and critical file name information.

Usage

read_phenocam(filename)

Arguments

filename

a PhenoCam data file

Value

A nested data structure including site meta-data, the full header and the data as a 'data.frame()'.

Examples


## Not run: 
# download demo data (do not smooth)
download_phenocam(site = "harvard$",
                  veg_type = "DB",
                  roi_id = "1000",
                  frequency = "3",
                  smooth = FALSE)

# read the phenocamo data file
df = read_phenocam(file.path(tempdir(),"harvard_DB_1000_3day.csv"))

# print data structure
print(summary(df))

# write the phenocamo data file
write_phenocam(df, out_dir = tempdir())

## End(Not run)

bluegreen-labs/phenocamr documentation built on Feb. 6, 2024, 10:42 p.m.