Reads PhenoCam data into a nested list, preserving header data and critical file name information.
read_phenocam(filename)
a PhenoCam data file
A nested data structure including site meta-data, the full header and the data as a `data.frame()`.
if (FALSE) {
# 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())
}