Function to convert NetCDF met files in PEcAn-CF format into GDAY met driver files. This function is an R wrapper to the python script "generate_forcing_data.py" in the inst/ folder. The python script supports arguments to generate sub-daily (30 min) weather data as well as soil temperature from 6 day running mean. These arguments are hard-coded in this function to generate daily GDAY files without soil temperature.

met2model.GDAY(in.path, in.prefix, outfolder, start_date, end_date,
  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)

overwrite

should existing files be overwritten

verbose

should the function be very verbose

Value

generates GDAY formatted met file as a side affect, returns file metadata that will be inserted into database

Details

met2model for GDAY