View source: R/dbpf_export_nc_generic.R
dbpf_export_nc_generic | R Documentation |
Exports temperature and relative humidity data from the database into a netcdf file compliant with CF conventions v1.6
dbpf_export_nc_generic(
con,
location_name,
file_name,
freq = "daily",
verbose = T
)
con |
Database connection object, as returned by dbpf_con() |
location_name |
integer, the number of unique timesteps for which there is temperature data |
file_name |
character, path to output netCDF file (*.nc) |
freq |
The frequency at which to aggregate data from the database one of ('daily', 'hourly') |
verbose |
whether or not to report on the progress of the download and file creation. Defaults to TRUE. |
Rows are returned from the database using a combination of dbSendQuery() and dbFetch().
Nick Brown <nick.brown@carleton.ca>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.