Reads LSM data (as a netcdf) in a given directory by (fluxnet) site name, optionally only returns the meta-data of the site data.

fdk_convert_lsm(
  site,
  path,
  fluxnet_format = FALSE,
  meta_data = FALSE,
  out_path,
  overwrite = FALSE
)

Arguments

site

fluxnet site name

path

path with plumber2 data (both flux and meteo data files)

fluxnet_format

convert to fluxnet formatting (TRUE/FALSE)

meta_data

return meta-data TRUE/FALSE

out_path

where to store the converted data if converted to fluxnet formatting and returns both half-hourly and daily data.

overwrite

overwriting existing files (TRUE/FALSE). Defaults to FALSE.

Value

data frame with merged meteo and flux data

Details

Default parameters return a CSV file which is compatible with the current OneFlux/FLUXNET naming conventions. Returned data will retain its half-hourly (HH) time step. For aggregation to a daily time step consider the `fdk_downsample_fluxnet()` function.