Get meteorology variables from Ameriflux LBL and convert to netCDF CF format
Usage
met2CF.AmerifluxLBL(
in.path,
in.prefix,
outfolder,
start_date,
end_date,
format,
overwrite = FALSE,
verbose = FALSE,
...
)Arguments
- in.path
location on disk where inputs are stored
- in.prefix
prefix of input and output files
- outfolder
location on disk where outputs will be stored
- start_date
the start date of the data to be downloaded (will only use the year part of the date)
- end_date
the end date of the data to be downloaded (will only use the year part of the date)
- format
is data frame or list with elements as described below The AmerifluxLBL format is Bety record 5000000002 which could be returned from PEcAn.DB::query.format.vars(format.id=5000000002) format is output from db/R/query.format.vars, and should have: REQUIRED: format$lat = latitude of site format$lon = longitude of site format$header = number of lines of header format$vars is a data.frame with lists of information for each variable to read, at least airT is required format$vars$input_name = Name in CSV file format$vars$input_units = Units in CSV file format$vars$bety_name = Name in BETY OPTIONAL: format$na.strings = list of missing values to convert to NA, such as -9999 format$skip = lines to skip excluding header format$vars$column_number = Column number in CSV file (optional, will use header name first) Columns with NA for bety variable name are dropped. Units for datetime field are the lubridate function that will be used to parse the date (e.g.
ymd_hmsormdy_hm).- overwrite
should existing files be overwritten
- verbose
should ouput of function be extra verbose
- ...
further arguments, currently ignored