dbpf_export_nc_generic: Export continuous data to netcdf

View source: R/dbpf_export_nc_generic.R

dbpf_export_nc_genericR Documentation

Export continuous data to netcdf

Description

Exports temperature and relative humidity data from the database into a netcdf file compliant with CF conventions v1.6

Usage

dbpf_export_nc_generic(
  con,
  location_name,
  file_name,
  freq = "daily",
  verbose = T
)

Arguments

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.

Details

Rows are returned from the database using a combination of dbSendQuery() and dbFetch().

Author(s)

Nick Brown <nick.brown@carleton.ca>


geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.